Skip to content

Commit d54eaf6

Browse files
sync with cpython 9ad2184d (python#104)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent e0d7814 commit d54eaf6

File tree

222 files changed

+21361
-17532
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

222 files changed

+21361
-17532
lines changed

bugs.po

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.7\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2020-06-20 18:08+0800\n"
15+
"POT-Creation-Date: 2021-09-07 06:52+0000\n"
1616
"PO-Revision-Date: 2018-10-13 16:29+0800\n"
1717
"Last-Translator: Adrian Liaw <[email protected]>\n"
1818
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -173,8 +173,8 @@ msgstr ""
173173

174174
#: ../../bugs.rst:84
175175
msgid ""
176-
"`Bug Report Writing Guidelines <https://developer.mozilla.org/en-US/docs/"
177-
"Mozilla/QA/Bug_writing_guidelines>`_"
176+
"`Bug Writing Guidelines <https://bugzilla.mozilla.org/page.cgi?id=bug-"
177+
"writing.html>`_"
178178
msgstr ""
179179

180180
#: ../../bugs.rst:84

c-api/arg.po

+21-23
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.7\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2020-06-20 18:08+0800\n"
10+
"POT-Creation-Date: 2021-09-07 06:52+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:29+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -240,7 +240,7 @@ msgstr ""
240240
msgid ""
241241
"Requires that the Python object is a :class:`bytes` object, without "
242242
"attempting any conversion. Raises :exc:`TypeError` if the object is not a "
243-
"bytes object. The C variable may also be declared as :c:type:`PyObject\\*`."
243+
"bytes object. The C variable may also be declared as :c:type:`PyObject*`."
244244
msgstr ""
245245

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

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

325325
#: ../../c-api/arg.rst:192
@@ -347,13 +347,12 @@ msgstr ""
347347
#: ../../c-api/arg.rst:198
348348
msgid ""
349349
"This format requires two arguments. The first is only used as input, and "
350-
"must be a :c:type:`const char\\*` which points to the name of an encoding as "
351-
"a NUL-terminated string, or ``NULL``, in which case ``'utf-8'`` encoding is "
350+
"must be a :c:type:`const char*` which points to the name of an encoding as a "
351+
"NUL-terminated string, or ``NULL``, in which case ``'utf-8'`` encoding is "
352352
"used. An exception is raised if the named encoding is not known to Python. "
353-
"The second argument must be a :c:type:`char\\*\\*`; the value of the pointer "
354-
"it references will be set to a buffer with the contents of the argument "
355-
"text. The text will be encoded in the encoding specified by the first "
356-
"argument."
353+
"The second argument must be a :c:type:`char**`; the value of the pointer it "
354+
"references will be set to a buffer with the contents of the argument text. "
355+
"The text will be encoded in the encoding specified by the first argument."
357356
msgstr ""
358357

359358
#: ../../c-api/arg.rst:206
@@ -393,10 +392,10 @@ msgstr ""
393392
#: ../../c-api/arg.rst:221
394393
msgid ""
395394
"It requires three arguments. The first is only used as input, and must be "
396-
"a :c:type:`const char\\*` which points to the name of an encoding as a NUL-"
395+
"a :c:type:`const char*` which points to the name of an encoding as a NUL-"
397396
"terminated string, or ``NULL``, in which case ``'utf-8'`` encoding is used. "
398397
"An exception is raised if the named encoding is not known to Python. The "
399-
"second argument must be a :c:type:`char\\*\\*`; the value of the pointer it "
398+
"second argument must be a :c:type:`char**`; the value of the pointer it "
400399
"references will be set to a buffer with the contents of the argument text. "
401400
"The text will be encoded in the encoding specified by the first argument. "
402401
"The third argument must be a pointer to an integer; the referenced integer "
@@ -619,7 +618,7 @@ msgstr ""
619618
msgid ""
620619
"Store a Python object in a C object pointer. This is similar to ``O``, but "
621620
"takes two C arguments: the first is the address of a Python type object, the "
622-
"second is the address of the C variable (of type :c:type:`PyObject\\*`) into "
621+
"second is the address of the C variable (of type :c:type:`PyObject*`) into "
623622
"which the object pointer is stored. If the Python object does not have the "
624623
"required type, :exc:`TypeError` is raised."
625624
msgstr ""
@@ -632,14 +631,14 @@ msgstr ""
632631
msgid ""
633632
"Convert a Python object to a C variable through a *converter* function. "
634633
"This takes two arguments: the first is a function, the second is the address "
635-
"of a C variable (of arbitrary type), converted to :c:type:`void \\*`. The "
634+
"of a C variable (of arbitrary type), converted to :c:type:`void *`. The "
636635
"*converter* function in turn is called as follows::"
637636
msgstr ""
638637

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

849847
#: ../../c-api/arg.rst:493
@@ -1107,7 +1105,7 @@ msgstr ""
11071105
msgid ""
11081106
"Convert *anything* to a Python object through a *converter* function. The "
11091107
"function is called with *anything* (which should be compatible with :c:type:"
1110-
"`void \\*`) as its argument and should return a \"new\" Python object, or "
1108+
"`void*`) as its argument and should return a \"new\" Python object, or "
11111109
"``NULL`` if an error occurred."
11121110
msgstr ""
11131111

c-api/bool.po

+9-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.7\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-06-26 18:54+0800\n"
11+
"POT-Creation-Date: 2021-09-07 06:52+0000\n"
1212
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
1313
"Last-Translator: Ching-Lung Chuang\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -32,34 +32,36 @@ msgid ""
3232
msgstr ""
3333

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

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

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

50-
#: ../../c-api/bool.rst:33
52+
#: ../../c-api/bool.rst:34
5153
msgid ""
5254
"Return :const:`Py_False` from a function, properly incrementing its "
5355
"reference count."
5456
msgstr ""
5557

56-
#: ../../c-api/bool.rst:39
58+
#: ../../c-api/bool.rst:40
5759
msgid ""
5860
"Return :const:`Py_True` from a function, properly incrementing its reference "
5961
"count."
6062
msgstr ""
6163

62-
#: ../../c-api/bool.rst:45
64+
#: ../../c-api/bool.rst:46
6365
msgid ""
6466
"Return a new reference to :const:`Py_True` or :const:`Py_False` depending on "
6567
"the truth value of *v*."

c-api/buffer.po

+14-12
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.7\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2020-06-20 18:08+0800\n"
10+
"POT-Creation-Date: 2021-09-07 06:52+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:30+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -453,6 +453,10 @@ msgstr ""
453453
msgid "C or F"
454454
msgstr ""
455455

456+
#: ../../c-api/buffer.rst:304
457+
msgid ":c:macro:`PyBUF_ND`"
458+
msgstr ""
459+
456460
#: ../../c-api/buffer.rst:309
457461
msgid "compound requests"
458462
msgstr ""
@@ -568,17 +572,15 @@ msgstr ""
568572
msgid ""
569573
"Send a request to *exporter* to fill in *view* as specified by *flags*. If "
570574
"the exporter cannot provide a buffer of the exact type, it MUST raise :c:"
571-
"data:`PyExc_BufferError`, set :c:member:`view->obj` to ``NULL`` and return "
572-
"``-1``."
575+
"data:`PyExc_BufferError`, set ``view->obj`` to ``NULL`` and return ``-1``."
573576
msgstr ""
574577

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

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

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

@@ -663,9 +665,9 @@ msgstr ""
663665

664666
#: ../../c-api/buffer.rst:519
665667
msgid ""
666-
"On success, set :c:member:`view->obj` to a new reference to *exporter* and "
667-
"return 0. Otherwise, raise :c:data:`PyExc_BufferError`, set :c:member:`view-"
668-
">obj` to ``NULL`` and return ``-1``;"
668+
"On success, set ``view->obj`` to a new reference to *exporter* and return 0. "
669+
"Otherwise, raise :c:data:`PyExc_BufferError`, set ``view->obj`` to ``NULL`` "
670+
"and return ``-1``;"
669671
msgstr ""
670672

671673
#: ../../c-api/buffer.rst:523

c-api/bytearray.po

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.7\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2020-06-20 18:08+0800\n"
10+
"POT-Creation-Date: 2021-09-07 06:52+0000\n"
1111
"PO-Revision-Date: 2015-12-09 17:51+0000\n"
1212
"Last-Translator: Liang-Bo Wang <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -40,13 +40,13 @@ msgstr ""
4040
#: ../../c-api/bytearray.rst:27
4141
msgid ""
4242
"Return true if the object *o* is a bytearray object or an instance of a "
43-
"subtype of the bytearray type."
43+
"subtype of the bytearray type. This function always succeeds."
4444
msgstr ""
4545

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

5252
#: ../../c-api/bytearray.rst:38

c-api/bytes.po

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.7\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2020-06-20 18:08+0800\n"
10+
"POT-Creation-Date: 2021-09-07 06:52+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:04+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -41,13 +41,13 @@ msgstr ""
4141
#: ../../c-api/bytes.rst:27
4242
msgid ""
4343
"Return true if the object *o* is a bytes object or an instance of a subtype "
44-
"of the bytes type."
44+
"of the bytes type. This function always succeeds."
4545
msgstr ""
4646

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

5353
#: ../../c-api/bytes.rst:39

c-api/call.po

+7-6
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.9\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2020-06-20 18:08+0800\n"
11+
"POT-Creation-Date: 2021-09-07 06:52+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
15+
"Language: \n"
1516
"MIME-Version: 1.0\n"
1617
"Content-Type: text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding: 8bit\n"
@@ -442,7 +443,7 @@ msgstr ""
442443

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

@@ -469,7 +470,7 @@ msgstr ""
469470

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

@@ -480,8 +481,8 @@ msgstr ""
480481
#: ../../c-api/call.rst:316
481482
msgid ""
482483
"Call a callable Python object *callable*, with a variable number of :c:type:"
483-
"`PyObject \\*` arguments. The arguments are provided as a variable number "
484-
"of parameters followed by *NULL*."
484+
"`PyObject *` arguments. The arguments are provided as a variable number of "
485+
"parameters followed by *NULL*."
485486
msgstr ""
486487

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

0 commit comments

Comments
 (0)