10000 3.8 pembaruan 2019-12-24 by oonid · Pull Request #8 · python/python-docs-id · GitHub
[go: up one dir, main page]

Skip to content

3.8 pembaruan 2019-12-24 #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Dec 24, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Sinkronisasi dengan Transifex 20191031.
  • Loading branch information
oonid committed Oct 31, 2019
commit 20f00892eb6f491a8242819cd706b0c87ce0fd6d
79 changes: 40 additions & 39 deletions c-api/arg.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-01 14:24+0000\n"
"POT-Creation-Date: 2019-10-31 11:48+0000\n"
"PO-Revision-Date: 2017-02-16 17:33+0000\n"
"Last-Translator: oon arfiandwi <oon.arfiandwi@gmail.com>, 2019\n"
"Language-Team: Indonesian (https://www.transifex.com/python-doc/teams/5390/id/)\n"
Expand Down Expand Up @@ -93,8 +93,8 @@ msgstr ""
msgid ""
"Some formats require a read-only :term:`bytes-like object`, and set a "
"pointer instead of a buffer structure. They work by checking that the "
"object's :c:member:`PyBufferProcs.bf_releasebuffer` field is *NULL*, which "
"disallows mutable objects such as :class:`bytearray`."
"object's :c:member:`PyBufferProcs.bf_releasebuffer` field is ``NULL``, which"
" disallows mutable objects such as :class:`bytearray`."
msgstr ""

#: ../../c-api/arg.rst:58
Expand Down Expand Up @@ -171,7 +171,7 @@ msgstr "``z`` (:class:`str` atau ``None``) [const char \\*]"
#: ../../c-api/arg.rst:101
msgid ""
"Like ``s``, but the Python object may also be ``None``, in which case the C "
"pointer is set to *NULL*."
"pointer is set to ``NULL``."
msgstr ""

#: ../../c-api/arg.rst:106
Expand All @@ -183,7 +183,7 @@ msgstr ""
#: ../../c-api/arg.rst:105
msgid ""
"Like ``s*``, but the Python object may also be ``None``, in which case the "
"``buf`` member of the :c:type:`Py_buffer` structure is set to *NULL*."
"``buf`` member of the :c:type:`Py_buffer` structure is set to ``NULL``."
msgstr ""

#: ../../c-api/arg.rst:110
Expand All @@ -195,7 +195,7 @@ msgstr ""
#: ../../c-api/arg.rst:109
msgid ""
"Like ``s#``, but the Python object may also be ``None``, in which case the C"
" pointer is set to *NULL*."
" pointer is set to ``NULL``."
msgstr ""

#: ../../c-api/arg.rst:120
Expand Down Expand Up @@ -299,7 +299,7 @@ msgstr "``Z`` (:class:`str` atau ``None``) [const Py_UNICODE \\*]"
#: ../../c-api/arg.rst:168
msgid ""
"Like ``u``, but the Python object may also be ``None``, in which case the "
":c:type:`Py_UNICODE` pointer is set to *NULL*."
":c:type:`Py_UNICODE` pointer is set to ``NULL``."
msgstr ""

#: ../../c-api/arg.rst:181
Expand All @@ -309,7 +309,7 @@ msgstr "``Z#`` (:class:`str` atau ``None``) [const Py_UNICODE \\*, int]"
#: ../../c-api/arg.rst:176
msgid ""
"Like ``u#``, but the Python object may also be ``None``, in which case the "
":c:type:`Py_UNICODE` pointer is set to *NULL*."
":c:type:`Py_UNICODE` pointer is set to ``NULL``."
msgstr ""

#: ../../c-api/arg.rst:186
Expand Down Expand Up @@ -349,12 +349,12 @@ msgstr ""
msgid ""
"This format requires two arguments. The first is only used as input, and "
"must be a :c:type:`const char\\*` which points to the name of an encoding as"
" a NUL-terminated string, or *NULL*, in which case ``'utf-8'`` encoding is "
"used. An exception is raised if the named encoding is not known to Python. "
"The second argument must be a :c:type:`char\\*\\*`; the value of the pointer"
" it references will be set to a buffer with the contents of the argument "
"text. The text will be encoded in the encoding specified by the first "
"argument."
" a NUL-terminated string, or ``NULL``, in which case ``'utf-8'`` encoding is"
" used. An exception is raised if the named encoding is not known to Python."
" The second argument must be a :c:type:`char\\*\\*`; the value of the "
"pointer it references will be set to a buffer with the contents of the "
"argument text. The text will be encoded in the encoding specified by the "
"first argument."
msgstr ""

#: ../../c-api/arg.rst:206
Expand Down Expand Up @@ -399,8 +399,8 @@ msgstr ""
msgid ""
"It requires three arguments. The first is only used as input, and must be a"
" :c:type:`const char\\*` which points to the name of an encoding as a NUL-"
"terminated string, or *NULL*, in which case ``'utf-8'`` encoding is used. An"
" exception is raised if the named encoding is not known to Python. The "
"terminated string, or ``NULL``, in which case ``'utf-8'`` encoding is used. "
"An exception is raised if the named encoding is not known to Python. The "
"second argument must be a :c:type:`char\\*\\*`; the value of the pointer it "
"references will be set to a buffer with the contents of the argument text. "< E377 /td>
"The text will be encoded in the encoding specified by the first argument. "
Expand All @@ -414,18 +414,18 @@ msgstr "Ada dua mode operasi:"

#: ../../c-api/arg.rst:233
msgid ""
"If *\\*buffer* points a *NULL* pointer, the function will allocate a buffer "
"of the needed size, copy the encoded data into this buffer and set "
"If *\\*buffer* points a ``NULL`` pointer, the function will allocate a "
"buffer of the needed size, copy the encoded data into this buffer and set "
"*\\*buffer* to reference the newly allocated storage. The caller is "
"responsible for calling :c:func:`PyMem_Free` to free the allocated buffer "
"after usage."
msgstr ""

#: ../../c-api/arg.rst:238
msgid ""
"If *\\*buffer* points to a non-*NULL* pointer (an already allocated buffer),"
" :c:func:`PyArg_ParseTuple` will use this location as the buffer and "
"interpret the initial value of *\\*buffer_length* as the buffer size. It "
"If *\\*buffer* points to a non-``NULL`` pointer (an already allocated "
"buffer), :c:func:`PyArg_ParseTuple` will use this location as the buffer and"
" interpret the initial value of *\\*buffer_length* as the buffer size. It "
"will then copy the encoded data into the buffer and NUL-terminate it. If "
"the buffer is not large enough, a :exc:`ValueError` will be set."
msgstr ""
Expand Down Expand Up @@ -614,7 +614,7 @@ msgstr "``O`` (object) [PyObject \\*]"
msgid ""
"Store a Python object (without any conversion) in a C object pointer. The C"
" program thus receives the actual object that was passed. The object's "
"reference count is not increased. The pointer stored is not *NULL*."
"reference count is not increased. The pointer stored is not ``NULL``."
msgstr ""

#: ../../c-api/arg.rst:327
Expand Down Expand Up @@ -657,7 +657,7 @@ msgid ""
"If the *converter* returns ``Py_CLEANUP_SUPPORTED``, it may get called a "
"second time if the argument parsing eventually fails, giving the converter a"
" chance to release any memory that it had already allocated. In this second "
"call, the *object* parameter will be NULL; *address* will have the same "
"call, the *object* parameter will be ``NULL``; *address* will have the same "
"value as in the original call."
msgstr ""

Expand Down Expand Up @@ -799,9 +799,10 @@ msgstr ""
msgid ""
"Parse the parameters of a function that takes both positional and keyword "
"parameters into local variables. The *keywords* argument is a "
"*NULL*-terminated array of keyword parameter names. Empty names denote :ref"
":`positional-only parameters <positional-only_parameter>`. Returns true on "
"success; on failure, it returns false and raises the appropriate exception."
"``NULL``-terminated array of keyword parameter names. Empty names denote "
":ref:`positional-only parameters <positional-only_parameter>`. Returns true "
"on success; on failure, it returns false and raises the appropriate "
"exception."
msgstr ""

#: ../../c-api/arg.rst:445
Expand Down Expand Up @@ -872,8 +873,8 @@ msgstr "Membangun nilai"
msgid ""
"Create a new value based on a format string similar to those accepted by the"
" :c:func:`PyArg_Parse\\*` family of functions and a sequence of values. "
"Returns the value or *NULL* in the case of an error; an exception will be "
"raised if *NULL* is returned."
"Returns the value or ``NULL`` in the case of an error; an exception will be "
"raised if ``NULL`` is returned."
msgstr ""

#: ../../c-api/arg.rst:526
Expand Down Expand Up @@ -918,7 +919,7 @@ msgstr "``s`` (:class:`str` atau ``None``) [const char \\*]"
#: ../../c-api/arg.rst:549
msgid ""
"Convert a null-terminated C string to a Python :class:`str` object using "
"``'utf-8'`` encoding. If the C string pointer is *NULL*, ``None`` is used."
"``'utf-8'`` encoding. If the C string pointer is ``NULL``, ``None`` is used."
msgstr ""

#: ../../c-api/arg.rst:555
Expand All @@ -928,7 +929,7 @@ msgstr "``s#`` (:class:`str` atau ``None``) [const char \\*, int]"
#: ../../c-api/arg.rst:553
msgid ""
"Convert a C string and its length to a Python :class:`str` object using "
"``'utf-8'`` encoding. If the C string pointer is *NULL*, the length is "
"``'utf-8'`` encoding. If the C string pointer is ``NULL``, the length is "
"ignored and ``None`` is returned."
msgstr ""

Expand All @@ -939,7 +940,7 @@ msgstr "``y`` (:class:`bytes`) [const char \\*]"
#: ../../c-api/arg.rst:558
msgid ""
"This converts a C string to a Python :class:`bytes` object. If the C string"
" pointer is *NULL*, ``None`` is returned."
" pointer is ``NULL``, ``None`` is returned."
msgstr ""

#: ../../c-api/arg.rst:563
Expand All @@ -949,7 +950,7 @@ msgstr "``y#`` (:class:`bytes`) [const char \\*, int]"
#: ../../c-api/arg.rst:562
msgid ""
"This converts a C string and its lengths to a Python object. If the C "
"string pointer is *NULL*, ``None`` is returned."
"string pointer is ``NULL``, ``None`` is returned."
msgstr ""

#: ../../c-api/arg.rst:566 ../../c-api/arg.rst:582
Expand All @@ -972,7 +973,7 @@ msgstr "``u`` (:class:`str`) [const wchar_t \\*]"
msgid ""
"Convert a null-terminated :c:type:`wchar_t` buffer of Unicode (UTF-16 or "
"UCS-4) data to a Python Unicode object. If the Unicode buffer pointer is "
"*NULL*, ``None`` is returned."
"``NULL``, ``None`` is returned."
msgstr ""

#: ../../c-api/arg.rst:579
Expand All @@ -982,7 +983,7 @@ msgstr "``u#`` (:class:`str`) [const wchar_t \\*, int]"
#: ../../c-api/arg.rst:577
msgid ""
"Convert a Unicode (UTF-16 or UCS-4) data buffer and its length to a Python "
"Unicode object. If the Unicode buffer pointer is *NULL*, the length is "
"Unicode object. If the Unicode buffer pointer is ``NULL``, the length is "
"ignored and ``None`` is returned."
msgstr ""

Expand Down Expand Up @@ -1077,11 +1078,11 @@ msgstr ""
#: ../../c-api/arg.rst:638
msgid ""
"Pass a Python object untouched (except for its reference count, which is "
"incremented by one). If the object passed in is a *NULL* pointer, it is "
"incremented by one). If the object passed in is a ``NULL`` pointer, it is "
"assumed that this was caused because the call producing the argument found "
"an error and set an exception. Therefore, :c:func:`Py_BuildValue` will "
"return *NULL* but won't raise an exception. If no exception has been raised"
" yet, :exc:`SystemError` is set."
"return ``NULL`` but won't raise an exception. If no exception has been "
"raised yet, :exc:`SystemError` is set."
msgstr ""

#: ../../c-api/arg.rst:646
Expand All @@ -1108,7 +1109,7 @@ msgid ""
"Convert *anything* to a Python object through a *converter* function. The "
"function is called with *anything* (which should be compatible with "
":c:type:`void \\*`) as its argument and should return a \"new\" Python "
"object, or *NULL* if an error occurred."
"object, or ``NULL`` if an error occurred."
msgstr ""

#: ../../c-api/arg.rst:660
Expand Down Expand Up @@ -1141,7 +1142,7 @@ msgstr ""
#: ../../c-api/arg.rst:670
msgid ""
"If there is an error in the format string, the :exc:`SystemError` exceptio 10000 n "
"is set and *NULL* returned."
"is set and ``NULL`` returned."
msgstr ""

#: ../../c-api/arg.rst:675
Expand Down
43 changes: 22 additions & 21 deletions c-api/buffer.po
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.8\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-12 11:28+0000\n"
"POT-Creation-Date: 2019-10-31 11:48+0000\n"
"PO-Revision-Date: 2017-02-16 17:33+0000\n"
"Last-Translator: oon arfiandwi <oon.arfiandwi@gmail.com>, 2019\n"
"Language-Team: Indonesian (https://www.transifex.com/python-doc/teams/5390/id/)\n"
Expand Down Expand Up @@ -153,7 +153,7 @@ msgstr ""
#: ../../c-api/buffer.rst:104
msgid ""
"A new reference to the exporting object. The reference is owned by the "
"consumer and automatically decremented and set to *NULL* by "
"consumer and automatically decremented and set to ``NULL`` by "
":c:func:`PyBuffer_Release`. The field is the equivalent of the return value "
"of any standard C-API function."
msgstr ""
Expand All @@ -162,7 +162,7 @@ msgstr ""
msgid ""
"As a special case, for *temporary* buffers that are wrapped by "
":c:func:`PyMemoryView_FromBuffer` or :c:func:`PyBuffer_FillInfo` this field "
"is *NULL*. In general, exporting objects MUST NOT use this scheme."
"is ``NULL``. In general, exporting objects MUST NOT use this scheme."
msgstr ""

#: ../../c-api/buffer.rst:116
Expand Down Expand Up @@ -190,15 +190,15 @@ msgstr ""
#: ../../c-api/buffer.rst:132
msgid ""
"Item size in bytes of a single element. Same as the value of "
":func:`struct.calcsize` called on non-NULL :c:member:`~Py_buffer.format` "
"values."
":func:`struct.calcsize` called on non-``NULL`` :c:member:`~Py_buffer.format`"
" values."
msgstr ""

#: ../../c-api/buffer.rst:135
msgid ""
"Important exception: If a consumer requests a buffer without the "
":c:macro:`PyBUF_FORMAT` flag, :c:member:`~Py_buffer.format` will be set to "
"*NULL*, but :c:member:`~Py_buffer.itemsize` still has the value for the "
"``NULL``, but :c:member:`~Py_buffer.itemsize` still has the value for the "
"original format."
msgstr ""

Expand All @@ -211,7 +211,7 @@ msgstr ""

#: ../../c-api/buffer.rst:144
msgid ""
"If :c:member:`~Py_buffer.shape` is *NULL* as a result of a "
"If :c:member:`~Py_buffer.shape` is ``NULL`` as a result of a "
":c:macro:`PyBUF_SIMPLE` or a :c:macro:`PyBUF_WRITABLE` request, the consumer"
" must disregard :c:member:`~Py_buffer.itemsize` and assume ``itemsize == "
"1``."
Expand All @@ -220,8 +220,8 @@ msgstr ""
#: ../../c-api/buffer.rst:150
msgid ""
"A *NUL* terminated string in :mod:`struct` module style syntax describing "
"the contents of a single item. If this is *NULL*, ``\"B\"`` (unsigned bytes)"
" is assumed."
"the contents of a single item. If this is ``NULL``, ``\"B\"`` (unsigned "
"bytes) is assumed."
msgstr ""

#: ../../c-api/buffer.rst:154
Expand All @@ -234,7 +234,7 @@ msgid ""
" it is ``0``, :c:member:`~Py_buffer.buf` points to a single item "
"representing a scalar. In this case, :c:member:`~Py_buffer.shape`, "
":c:member:`~Py_buffer.strides` and :c:member:`~Py_buffer.suboffsets` MUST be"
" *NULL*."
" ``NULL``."
msgstr ""

#: ../../c-api/buffer.rst:163
Expand Down Expand Up @@ -292,7 +292,7 @@ msgstr ""
#: ../../c-api/buffer.rst:201
msgid ""
"If all suboffsets are negative (i.e. no de-referencing is needed), then this"
" field must be NULL (the default value)."
" field must be ``NULL`` (the default value)."
msgstr ""

#: ../../c-api/buffer.rst:204
Expand Down Expand Up @@ -359,7 +359,7 @@ msgstr ""
#: ../../c-api/buffer.rst:250
msgid ""
"Controls the :c:member:`~Py_buffer.format` field. If set, this field MUST be"
" filled in correctly. Otherwise, this field MUST be *NULL*."
" filled in correctly. Otherwise, this field MUST be ``NULL``."
msgstr ""

#: ../../c-api/buffer.rst:254
Expand Down Expand Up @@ -535,13 +535,14 @@ msgid ""
"If ``ndim == 0``, the memory location pointed to by "
":c:member:`~Py_buffer.buf` is interpreted as a scalar of size "
":c:member:`~Py_buffer.itemsize`. In that case, both "
":c:member:`~Py_buffer.shape` and :c:member:`~Py_buffer.strides` are *NULL*."
":c:member:`~Py_buffer.shape` and :c:member:`~Py_buffer.strides` are "
"``NULL``."
msgstr ""

#: ../../c-api/buffer.rst:354
msgid ""
"If :c:member:`~Py_buffer.strides` is *NULL*, the array is interpreted as a "
"standard n-dimensional C-array. Otherwise, the consumer must access an "
"If :c:member:`~Py_buffer.strides` is ``NULL``, the array is interpreted as a"
" standard n-dimensional C-array. Otherwise, the consumer must access an "
"n-dimensional array as follows:"
msgstr ""

Expand Down Expand Up @@ -570,8 +571,8 @@ msgstr ""
#: ../../c-api/buffer.rst:409
msgid ""
"Here is a function that returns a pointer to the element in an N-D array "
"pointed to by an N-dimensional index when there are both non-NULL strides "
"and suboffsets::"
"pointed to by an N-dimensional index when there are both non-``NULL`` "
"strides and suboffsets::"
msgstr ""

#: ../../c-api/buffer.rst:428
Expand All @@ -589,8 +590,8 @@ msgstr ""
msgid ""
"Send a request to *exporter* to fill in *view* as specified by *flags*. If "
"the exporter cannot provide a buffer of the exact type, it MUST raise "
":c:data:`PyExc_BufferError`, set :c:member:`view->obj` to *NULL* and return "
"``-1``."
":c:data:`PyExc_BufferError`, set :c:member:`view->obj` to ``NULL`` and "
"return ``-1``."
msgstr ""

#: ../../c-api/buffer.rst:444
Expand Down Expand Up @@ -686,12 +687,12 @@ msgstr ""
msgid ""
"On success, set :c:member:`view->obj` to a new reference to *exporter* and "
"return 0. Otherwise, raise :c:data:`PyExc_BufferError`, set "
":c:member:`view->obj` to *NULL* and return ``-1``;"
":c:member:`view->obj` to ``NULL`` and return ``-1``;"
msgstr ""

#: ../../c-api/buffer.rst:521
msgid ""
"If this function is used as part of a :ref:`getbufferproc <buffer-structs>`,"
" *exporter* MUST be set to the exporting object and *flags* must be passed "
"unmodified. Otherwise, *exporter* MUST be NULL."
"unmodified. Otherwise, *exporter* MUST be ``NULL``."
msgstr ""
Loading
0