Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Sync with CPython 3.9#105

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
adrianliaw merged 13 commits into3.9fromcron/sync/3.9
Sep 17, 2021
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
13 commits
Select commitHold shift + click to select a range
c25c111
sync with cpython 1b02e29f
github-actions[bot]Sep 13, 2021
3eef7db
fix(sphinx): update based on changes from cpython syncing
mattwang44Sep 10, 2021
24f673b
fix(tutorial/controlflow): update based on changes from cpython syncing
mattwang44Sep 10, 2021
ed9b230
fix(copyright): update based on changes from cpython syncing
mattwang44Sep 10, 2021
e8007dc
fix(faq/general): update based on changes from cpython syncing
mattwang44Sep 10, 2021
dbc1aa7
fix(faq/programming): update based on changes from cpython syncing
mattwang44Sep 10, 2021
aecf717
fix(howto/descriptor): update based on changes from cpython syncing
mattwang44Sep 10, 2021
0c84161
fix(library/array): update based on changes from cpython syncing
mattwang44Sep 10, 2021
93bae2f
fix(c-api/dict): update based on changes from cpython syncing
mattwang44Sep 10, 2021
518f91a
Merge branch '3.9' into cron/sync/3.9
mattwang44Sep 15, 2021
ce2b526
sync with cpython 4ce55cce
github-actions[bot]Sep 15, 2021
585450f
sync with cpython 9443ce4e
github-actions[bot]Sep 16, 2021
399996c
fix(tutorial/floatingpoint): update based on changes from cpython syn…
mattwang44Sep 16, 2021
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
4 changes: 2 additions & 2 deletionsbugs.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -207,8 +207,8 @@ msgstr ""

#: ../../bugs.rst:84
msgid ""
"`Bug Writing Guidelines <https://bugzilla.mozilla.org/page.cgi?id=bug-writing."
"html>`_"
"`Bug Writing Guidelines <https://bugzilla.mozilla.org/page.cgi?id=bug-"
"writing.html>`_"
msgstr ""
"`錯誤撰寫指南 <https://bugzilla.mozilla.org/page.cgi?id=bug-writing.html>`_"

Expand Down
44 changes: 21 additions & 23 deletionsc-api/arg.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date:2020-06-20 18:08+0800\n"
"POT-Creation-Date:2021-09-13 00:11+0000\n"
"PO-Revision-Date: 2018-05-23 14:29+0000\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand DownExpand Up@@ -240,7 +240,7 @@ msgstr ""
msgid ""
"Requires that the Python object is a :class:`bytes` object, without "
"attempting any conversion. Raises :exc:`TypeError` if the object is not a "
"bytes object. The C variable may also be declared as :c:type:`PyObject\\*`."
"bytes object. The C variable may also be declared as :c:type:`PyObject*`."
msgstr ""

#: ../../c-api/arg.rst:139
Expand All@@ -252,7 +252,7 @@ msgid ""
"Requires that the Python object is a :class:`bytearray` object, without "
"attempting any conversion. Raises :exc:`TypeError` if the object is not a :"
"class:`bytearray` object. The C variable may also be declared as :c:type:"
"`PyObject\\*`."
"`PyObject*`."
msgstr ""

#: ../../c-api/arg.rst:156
Expand DownExpand Up@@ -319,7 +319,7 @@ msgstr ""
msgid ""
"Requires that the Python object is a Unicode object, without attempting any "
"conversion. Raises :exc:`TypeError` if the object is not a Unicode object. "
"The C variable may also be declared as :c:type:`PyObject\\*`."
"The C variable may also be declared as :c:type:`PyObject*`."
msgstr ""

#: ../../c-api/arg.rst:192
Expand DownExpand Up@@ -347,13 +347,12 @@ msgstr ""
#: ../../c-api/arg.rst:198
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 "
"aNUL-terminated string, or ``NULL``, in which case ``'utf-8'`` encoding is "
"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."
"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 DownExpand Up@@ -393,10 +392,10 @@ msgstr ""
#: ../../c-api/arg.rst:221
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-"
"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 "
"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. "
"The third argument must be a pointer to an integer; the referenced integer "
Expand DownExpand Up@@ -619,7 +618,7 @@ msgstr ""
msgid ""
"Store a Python object in a C object pointer. This is similar to ``O``, but "
"takes two C arguments: the first is the address of a Python type object, the "
"second is the address of the C variable (of type :c:type:`PyObject\\*`) into "
"second is the address of the C variable (of type :c:type:`PyObject*`) into "
"which the object pointer is stored. If the Python object does not have the "
"required type, :exc:`TypeError` is raised."
msgstr ""
Expand All@@ -632,14 +631,14 @@ msgstr ""
msgid ""
"Convert a Python object to a C variable through a *converter* function. "
"This takes two arguments: the first is a function, the second is the address "
"of a C variable (of arbitrary type), converted to :c:type:`void\\*`. The "
"of a C variable (of arbitrary type), converted to :c:type:`void *`. The "
"*converter* function in turn is called as follows::"
msgstr ""

#: ../../c-api/arg.rst:339
msgid ""
"where *object* is the Python object to be converted and *address* is the :c:"
"type:`void\\*` argument that was passed to the :c:func:`PyArg_Parse\\*` "
"type:`void*` argument that was passed to the :c:func:`PyArg_Parse\\*` "
"function. The returned *status* should be ``1`` for a successful conversion "
"and ``0`` if the conversion has failed. When the conversion fails, the "
"*converter* function should raise an exception and leave the content of "
Expand DownExpand Up@@ -837,13 +836,12 @@ msgid ""
"should be passed as *args*; it must actually be a tuple. The length of the "
"tuple must be at least *min* and no more than *max*; *min* and *max* may be "
"equal. Additional arguments must be passed to the function, each of which "
"should be a pointer to a :c:type:`PyObject\\*` variable; these will be "
"filled in with the values from *args*; they will contain borrowed "
"references. The variables which correspond to optional parameters not given "
"by *args* will not be filled in; these should be initialized by the caller. "
"This function returns true on success and false if *args* is not a tuple or "
"contains the wrong number of elements; an exception will be set if there was "
"a failure."
"should be a pointer to a :c:type:`PyObject*` variable; these will be filled "
"in with the values from *args*; they will contain borrowed references. The "
"variables which correspond to optional parameters not given by *args* will "
"not be filled in; these should be initialized by the caller. This function "
"returns true on success and false if *args* is not a tuple or contains the "
"wrong number of elements; an exception will be set if there was a failure."
msgstr ""

#: ../../c-api/arg.rst:493
Expand DownExpand Up@@ -1107,7 +1105,7 @@ msgstr ""
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 "
"`void*`) as its argument and should return a \"new\" Python object, or "
"``NULL`` if an error occurred."
msgstr ""

Expand Down
16 changes: 9 additions & 7 deletionsc-api/bool.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date:2018-06-26 18:54+0800\n"
"POT-Creation-Date:2021-09-13 00:11+0000\n"
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
"Last-Translator: Ching-Lung Chuang\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand All@@ -32,34 +32,36 @@ msgid ""
msgstr ""

#: ../../c-api/bool.rst:16
msgid "Return true if *o* is of type :c:data:`PyBool_Type`."
msgid ""
"Return true if *o* is of type :c:data:`PyBool_Type`. This function always "
"succeeds."
msgstr ""

#: ../../c-api/bool.rst:21
#: ../../c-api/bool.rst:22
msgid ""
"The Python ``False`` object. This object has no methods. It needs to be "
"treated just like any other object with respect to reference counts."
msgstr ""

#: ../../c-api/bool.rst:27
#: ../../c-api/bool.rst:28
msgid ""
"The Python ``True`` object. This object has no methods. It needs to be "
"treated just like any other object with respect to reference counts."
msgstr ""

#: ../../c-api/bool.rst:33
#: ../../c-api/bool.rst:34
msgid ""
"Return :const:`Py_False` from a function, properly incrementing its "
"reference count."
msgstr ""

#: ../../c-api/bool.rst:39
#: ../../c-api/bool.rst:40
msgid ""
"Return :const:`Py_True` from a function, properly incrementing its reference "
"count."
msgstr ""

#: ../../c-api/bool.rst:45
#: ../../c-api/bool.rst:46
msgid ""
"Return a new reference to :const:`Py_True` or :const:`Py_False` depending on "
"the truth value of *v*."
Expand Down
26 changes: 14 additions & 12 deletionsc-api/buffer.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date:2020-06-20 18:08+0800\n"
"POT-Creation-Date:2021-09-13 00:11+0000\n"
"PO-Revision-Date: 2018-05-23 14:30+0000\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand DownExpand Up@@ -453,6 +453,10 @@ msgstr ""
msgid "C or F"
msgstr ""

#: ../../c-api/buffer.rst:304
msgid ":c:macro:`PyBUF_ND`"
msgstr ""

#: ../../c-api/buffer.rst:309
msgid "compound requests"
msgstr ""
Expand DownExpand Up@@ -568,17 +572,15 @@ 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``."
"data:`PyExc_BufferError`, set ``view->obj`` to ``NULL`` and return ``-1``."
msgstr ""

#: ../../c-api/buffer.rst:444
msgid ""
"On success, fill in *view*, set:c:member:`view->obj` to a new reference to "
"On success, fill in *view*, set``view->obj`` to a new reference to "
"*exporter* and return 0. In the case of chained buffer providers that "
"redirect requests to a single object, :c:member:`view->obj` MAY refer to "
"this object instead of *exporter* (See :ref:`Buffer Object Structures "
"<buffer-structs>`)."
"redirect requests to a single object, ``view->obj`` MAY refer to this object "
"instead of *exporter* (See :ref:`Buffer Object Structures <buffer-structs>`)."
msgstr ""

#: ../../c-api/buffer.rst:449
Expand All@@ -591,8 +593,8 @@ msgstr ""

#: ../../c-api/buffer.rst:457
msgid ""
"Release the buffer *view* and decrement the reference count for:c:member:"
"`view->obj`. This function MUST be called when the buffer is no longer being "
"Release the buffer *view* and decrement the reference count for``view-"
">obj``. This function MUST be called when the buffer is no longer being "
"used, otherwise reference leaks may occur."
msgstr ""

Expand DownExpand Up@@ -663,9 +665,9 @@ msgstr ""

#: ../../c-api/buffer.rst:519
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``;"
"On success, set``view->obj`` to a new reference to *exporter* and return 0. "
"Otherwise, raise :c:data:`PyExc_BufferError`, set``view->obj`` to ``NULL``"
"and return ``-1``;"
msgstr ""

#: ../../c-api/buffer.rst:523
Expand Down
6 changes: 3 additions & 3 deletionsc-api/bytearray.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date:2020-06-20 18:08+0800\n"
"POT-Creation-Date:2021-09-13 00:11+0000\n"
"PO-Revision-Date: 2015-12-09 17:51+0000\n"
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand DownExpand Up@@ -40,13 +40,13 @@ msgstr ""
#: ../../c-api/bytearray.rst:27
msgid ""
"Return true if the object *o* is a bytearray object or an instance of a "
"subtype of the bytearray type."
"subtype of the bytearray type. This function always succeeds."
msgstr ""

#: ../../c-api/bytearray.rst:33
msgid ""
"Return true if the object *o* is a bytearray object, but not an instance of "
"a subtype of the bytearray type."
"a subtype of the bytearray type. This function always succeeds."
msgstr ""

#: ../../c-api/bytearray.rst:38
Expand Down
6 changes: 3 additions & 3 deletionsc-api/bytes.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date:2020-06-20 18:08+0800\n"
"POT-Creation-Date:2021-09-13 00:11+0000\n"
"PO-Revision-Date: 2018-05-23 14:04+0000\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand DownExpand Up@@ -41,13 +41,13 @@ msgstr ""
#: ../../c-api/bytes.rst:27
msgid ""
"Return true if the object *o* is a bytes object or an instance of a subtype "
"of the bytes type."
"of the bytes type. This function always succeeds."
msgstr ""

#: ../../c-api/bytes.rst:33
msgid ""
"Return true if the object *o* is a bytes object, but not an instance of a "
"subtype of the bytes type."
"subtype of the bytes type. This function always succeeds."
msgstr ""

#: ../../c-api/bytes.rst:39
Expand Down
13 changes: 7 additions & 6 deletionsc-api/call.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,10 +8,11 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.9\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date:2020-06-20 18:08+0800\n"
"POT-Creation-Date:2021-09-13 00:11+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: zh_TW\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand DownExpand Up@@ -442,7 +443,7 @@ msgstr ""

#: ../../c-api/call.rst:286
msgid ""
"Note that if you only pass :c:type:`PyObject\\*` args, :c:func:"
"Note that if you only pass :c:type:`PyObject *` args, :c:func:"
"`PyObject_CallFunctionObjArgs` is a faster alternative."
msgstr ""

Expand All@@ -469,7 +470,7 @@ msgstr ""

#: ../../c-api/call.rst:307
msgid ""
"Note that if you only pass :c:type:`PyObject\\*` args, :c:func:"
"Note that if you only pass :c:type:`PyObject *` args, :c:func:"
"`PyObject_CallMethodObjArgs` is a faster alternative."
msgstr ""

Expand All@@ -480,8 +481,8 @@ msgstr ""
#: ../../c-api/call.rst:316
msgid ""
"Call a callable Python object *callable*, with a variable number of :c:type:"
"`PyObject\\*` arguments. The arguments are provided as a variable number "
"ofparameters followed by *NULL*."
"`PyObject *` arguments. The arguments are provided as a variable number of "
"parameters followed by *NULL*."
msgstr ""

#: ../../c-api/call.rst:323
Expand All@@ -494,7 +495,7 @@ msgstr ""
msgid ""
"Call a method of the Python object *obj*, where the name of the method is "
"given as a Python string object in *name*. It is called with a variable "
"number of :c:type:`PyObject\\*` arguments. The arguments are provided as a "
"number of :c:type:`PyObject *` arguments. The arguments are provided as a "
"variable number of parameters followed by *NULL*."
msgstr ""

Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp