11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2021, Python Software Foundation
2+ # Copyright (C) 2001 Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
66#, fuzzy
77msgid ""
88msgstr ""
9- "Project-Id-Version : Python 3.9 \n "
9+ "Project-Id-Version : Python 3.14 \n "
1010"Report-Msgid-Bugs-To : \n "
11- "POT-Creation-Date : 2021-01-07 05:06 +0000\n "
12- "PO-Revision-Date : 2017-02-16 17:38 +0000\n "
13- "Language-Team : Indonesian (https://www .transifex.com/python-doc/teams/5390/id/)\n "
11+ "POT-Creation-Date : 2025-05-09 14:19 +0000\n "
12+ "PO-Revision-Date : 2021-06-28 00:50 +0000\n "
13+ "Language-Team : Indonesian (https://app .transifex.com/python-doc/teams/5390/id/)\n "
1414"MIME-Version : 1.0\n "
1515"Content-Type : text/plain; charset=UTF-8\n "
1616"Content-Transfer-Encoding : 8bit\n "
@@ -38,34 +38,39 @@ msgid ""
3838"Return a new slice object with the given values. The *start*, *stop*, and "
3939"*step* parameters are used as the values of the slice object attributes of "
4040"the same names. Any of the values may be ``NULL``, in which case the "
41- "``None`` will be used for the corresponding attribute. Return ``NULL`` if "
42- "the new object could not be allocated."
41+ "``None`` will be used for the corresponding attribute."
4342msgstr ""
4443
45- #: ../../c-api/slice.rst:32
44+ #: ../../c-api/slice.rst:28
45+ msgid ""
46+ "Return ``NULL`` with an exception set if the new object could not be "
47+ "allocated."
48+ msgstr ""
49+
50+ #: ../../c-api/slice.rst:34
4651msgid ""
4752"Retrieve the start, stop and step indices from the slice object *slice*, "
4853"assuming a sequence of length *length*. Treats indices greater than *length*"
4954" as errors."
5055msgstr ""
5156
52- #: ../../c-api/slice.rst:36
57+ #: ../../c-api/slice.rst:38
5358msgid ""
5459"Returns ``0`` on success and ``-1`` on error with no exception set (unless "
55- "one of the indices was not :const:` None` and failed to be converted to an "
60+ "one of the indices was not `` None` ` and failed to be converted to an "
5661"integer, in which case ``-1`` is returned with an exception set)."
5762msgstr ""
5863
59- #: ../../c-api/slice.rst:40
64+ #: ../../c-api/slice.rst:42
6065msgid "You probably do not want to use this function."
6166msgstr ""
6267
63- #: ../../c-api/slice.rst:42 ../../c-api/slice.rst:73
68+ #: ../../c-api/slice.rst:44 ../../c-api/slice.rst:75
6469msgid ""
6570"The parameter type for the *slice* parameter was ``PySliceObject*`` before."
6671msgstr ""
6772
68- #: ../../c-api/slice.rst:49
73+ #: ../../c-api/slice.rst:51
6974msgid ""
7075"Usable replacement for :c:func:`PySlice_GetIndices`. Retrieve the start, "
7176"stop, and step indices from the slice object *slice* assuming a sequence of "
@@ -74,22 +79,37 @@ msgid ""
7479"normal slices."
7580msgstr ""
7681
77- #: ../../c-api/slice.rst:55
78- msgid "Returns ``0`` on success and ``-1`` on error with exception set."
82+ #: ../../c-api/slice.rst:57
83+ msgid "Return ``0`` on success and ``-1`` on error with an exception set."
7984msgstr ""
8085
81- #: ../../c-api/slice.rst:58
86+ #: ../../c-api/slice.rst:60
8287msgid ""
8388"This function is considered not safe for resizable sequences. Its invocation"
8489" should be replaced by a combination of :c:func:`PySlice_Unpack` and "
8590":c:func:`PySlice_AdjustIndices` where ::"
8691msgstr ""
8792
88- #: ../../c-api/slice.rst:66
93+ #: ../../c-api/slice.rst:64
94+ msgid ""
95+ "if (PySlice_GetIndicesEx(slice, length, &start, &stop, &step, &slicelength) < 0) {\n"
96+ " // return error\n"
97+ "}"
98+ msgstr ""
99+
100+ #: ../../c-api/slice.rst:68
89101msgid "is replaced by ::"
90102msgstr ""
91103
92- #: ../../c-api/slice.rst:77
104+ #: ../../c-api/slice.rst:70
105+ msgid ""
106+ "if (PySlice_Unpack(slice, &start, &stop, &step) < 0) {\n"
107+ " // return error\n"
108+ "}\n"
109+ "slicelength = PySlice_AdjustIndices(length, &start, &stop, step);"
110+ msgstr ""
111+
112+ #: ../../c-api/slice.rst:79
93113msgid ""
94114"If ``Py_LIMITED_API`` is not set or set to the value between ``0x03050400`` "
95115"and ``0x03060000`` (not including) or ``0x03060100`` or higher "
@@ -98,14 +118,14 @@ msgid ""
98118"*start*, *stop* and *step* are evaluated more than once."
99119msgstr ""
100120
101- #: ../../c-api/slice.rst:84
121+ #: ../../c-api/slice.rst:86
102122msgid ""
103123"If ``Py_LIMITED_API`` is set to the value less than ``0x03050400`` or "
104124"between ``0x03060000`` and ``0x03060100`` (not including) "
105125":c:func:`!PySlice_GetIndicesEx` is a deprecated function."
106126msgstr ""
107127
108- #: ../../c-api/slice.rst:92
128+ #: ../../c-api/slice.rst:94
109129msgid ""
110130"Extract the start, stop and step data members from a slice object as C "
111131"integers. Silently reduce values larger than ``PY_SSIZE_T_MAX`` to "
@@ -114,30 +134,39 @@ msgid ""
114134" less than ``-PY_SSIZE_T_MAX`` to ``-PY_SSIZE_T_MAX``."
115135msgstr ""
116136
117- #: ../../c-api/slice.rst:98
118- msgid "Return ``-1`` on error, ``0`` on success."
137+ #: ../../c-api/slice.rst:100
138+ msgid "Return ``-1`` with an exception set on error, ``0`` on success."
119139msgstr ""
120140
121- #: ../../c-api/slice.rst:105
141+ #: ../../c-api/slice.rst:107
122142msgid ""
123143"Adjust start/end slice indices assuming a sequence of the specified length. "
124144"Out of bounds indices are clipped in a manner consistent with the handling "
125145"of normal slices."
126146msgstr ""
127147
128- #: ../../c-api/slice.rst:109
148+ #: ../../c-api/slice.rst:111
129149msgid ""
130150"Return the length of the slice. Always successful. Doesn't call Python "
131151"code."
132152msgstr ""
133153
134- #: ../../c-api/slice.rst:116
154+ #: ../../c-api/slice.rst:118
135155msgid "Ellipsis Object"
136156msgstr ""
137157
138- #: ../../c-api/slice.rst:121
158+ #: ../../c-api/slice.rst:123
139159msgid ""
140- "The Python ``Ellipsis`` object. This object has no methods. It needs to be"
141- " treated just like any other object with respect to reference counts. Like "
142- ":c:data:`Py_None` it is a singleton object."
160+ "The type of Python :const:`Ellipsis` object. Same "
161+ "as :class:`types.EllipsisType` in the Python layer."
162+ msgstr ""
163+
164+ #: ../../c-api/slice.rst:129
165+ msgid ""
166+ "The Python ``Ellipsis`` object. This object has no methods. Like "
167+ ":c:data:`Py_None`, it is an :term:`immortal` singleton object."
168+ msgstr ""
169+
170+ #: ../../c-api/slice.rst:132
171+ msgid ":c:data:`Py_Ellipsis` is immortal."
143172msgstr ""
0 commit comments