Skip to content

Commit 66487c2

Browse files
sync with cpython 84c5676e
1 parent 7215e8d commit 66487c2

Some content is hidden

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

49 files changed

+2431
-2120
lines changed

c-api/arg.po

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-07-22 00:04+0000\n"
10+
"POT-Creation-Date: 2023-07-24 00:03+0000\n"
1111
"PO-Revision-Date: 2022-10-16 03:21+0800\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -943,7 +943,7 @@ msgstr "``u`` (:class:`str`) [const wchar_t \\*]"
943943

944944
#: ../../c-api/arg.rst:550
945945
msgid ""
946-
"Convert a null-terminated :c:expr:`wchar_t` buffer of Unicode (UTF-16 or "
946+
"Convert a null-terminated :c:type:`wchar_t` buffer of Unicode (UTF-16 or "
947947
"UCS-4) data to a Python Unicode object. If the Unicode buffer pointer is "
948948
"``NULL``, ``None`` is returned."
949949
msgstr ""

c-api/buffer.po

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-05-09 00:15+0000\n"
10+
"POT-Creation-Date: 2023-07-24 00:03+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-"
@@ -321,7 +321,7 @@ msgstr ""
321321

322322
#: ../../c-api/buffer.rst:228
323323
msgid ""
324-
"All :c:data:`Py_buffer` fields are unambiguously defined by the request type."
324+
"All :c:type:`Py_buffer` fields are unambiguously defined by the request type."
325325
msgstr ""
326326

327327
#: ../../c-api/buffer.rst:232
@@ -606,8 +606,8 @@ msgstr ""
606606

607607
#: ../../c-api/buffer.rst:467
608608
msgid ""
609-
"Return the implied :c:data:`~Py_buffer.itemsize` from :c:data:`~Py_buffer."
610-
"format`. On error, raise an exception and return -1."
609+
"Return the implied :c:member:`~Py_buffer.itemsize` from :c:member:"
610+
"`~Py_buffer.format`. On error, raise an exception and return -1."
611611
msgstr ""
612612

613613
#: ../../c-api/buffer.rst:475

c-api/exceptions.po

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.12\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2023-07-22 00:04+0000\n"
11+
"POT-Creation-Date: 2023-07-24 00:03+0000\n"
1212
"PO-Revision-Date: 2018-05-23 14:05+0000\n"
1313
"Last-Translator: Adrian Liaw <[email protected]>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -202,7 +202,7 @@ msgid ""
202202
"function has returned an error and set the C variable :c:data:`errno`. It "
203203
"constructs a tuple object whose first item is the integer :c:data:`errno` "
204204
"value and whose second item is the corresponding error message (gotten from :"
205-
"c:func:`strerror`), and then calls ``PyErr_SetObject(type, object)``. On "
205+
"c:func:`!strerror`), and then calls ``PyErr_SetObject(type, object)``. On "
206206
"Unix, when the :c:data:`errno` value is :c:macro:`EINTR`, indicating an "
207207
"interrupted system call, this calls :c:func:`PyErr_CheckSignals`, and if "
208208
"that set the error indicator, leaves it set to that. The function always "

c-api/iterator.po

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.12\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
11+
"POT-Creation-Date: 2023-07-24 00:03+0000\n"
1212
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
1313
"Last-Translator: Leon H.\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -26,10 +26,10 @@ msgstr "疊代器(Iterator)物件"
2626
#: ../../c-api/iterator.rst:8
2727
msgid ""
2828
"Python provides two general-purpose iterator objects. The first, a sequence "
29-
"iterator, works with an arbitrary sequence supporting the :meth:"
30-
"`__getitem__` method. The second works with a callable object and a "
31-
"sentinel value, calling the callable for each item in the sequence, and "
32-
"ending the iteration when the sentinel value is returned."
29+
"iterator, works with an arbitrary sequence supporting the :meth:`~object."
30+
"__getitem__` method. The second works with a callable object and a sentinel "
31+
"value, calling the callable for each item in the sequence, and ending the "
32+
"iteration when the sentinel value is returned."
3333
msgstr ""
3434

3535
#: ../../c-api/iterator.rst:17

c-api/mapping.po

+9-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-05-09 00:15+0000\n"
10+
"POT-Creation-Date: 2023-07-24 00:03+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:32+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -32,8 +32,8 @@ msgstr ""
3232
msgid ""
3333
"Return ``1`` if the object provides the mapping protocol or supports "
3434
"slicing, and ``0`` otherwise. Note that it returns ``1`` for Python classes "
35-
"with a :meth:`__getitem__` method, since in general it is impossible to "
36-
"determine what type of keys the class supports. This function always "
35+
"with a :meth:`~object.__getitem__` method, since in general it is impossible "
36+
"to determine what type of keys the class supports. This function always "
3737
"succeeds."
3838
msgstr ""
3939

@@ -80,16 +80,17 @@ msgstr ""
8080

8181
#: ../../c-api/mapping.rst:63
8282
msgid ""
83-
"Note that exceptions which occur while calling the :meth:`__getitem__` "
84-
"method will get suppressed. To get error reporting use :c:func:"
83+
"Note that exceptions which occur while calling the :meth:`~object."
84+
"__getitem__` method will get suppressed. To get error reporting use :c:func:"
8585
"`PyObject_GetItem()` instead."
8686
msgstr ""
8787

8888
#: ../../c-api/mapping.rst:74
8989
msgid ""
90-
"Note that exceptions which occur while calling the :meth:`__getitem__` "
91-
"method and creating a temporary string object will get suppressed. To get "
92-
"error reporting use :c:func:`PyMapping_GetItemString()` instead."
90+
"Note that exceptions which occur while calling the :meth:`~object."
91+
"__getitem__` method and creating a temporary string object will get "
92+
"suppressed. To get error reporting use :c:func:`PyMapping_GetItemString()` "
93+
"instead."
9394
msgstr ""
9495

9596
#: ../../c-api/mapping.rst:81

c-api/memory.po

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.12\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2023-07-22 00:04+0000\n"
11+
"POT-Creation-Date: 2023-07-24 00:03+0000\n"
1212
"PO-Revision-Date: 2018-05-23 14:06+0000\n"
1313
"Last-Translator: Adrian Liaw <[email protected]>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -882,11 +882,11 @@ msgstr ""
882882
#: ../../c-api/memory.rst:583
883883
msgid ""
884884
"A serial number, incremented by 1 on each call to a malloc-like or realloc-"
885-
"like function. Big-endian ``size_t``. If \"bad memory\" is detected later, "
886-
"the serial number gives an excellent way to set a breakpoint on the next "
887-
"run, to capture the instant at which this block was passed out. The static "
888-
"function bumpserialno() in obmalloc.c is the only place the serial number is "
889-
"incremented, and exists so you can set such a breakpoint easily."
885+
"like function. Big-endian :c:type:`size_t`. If \"bad memory\" is detected "
886+
"later, the serial number gives an excellent way to set a breakpoint on the "
887+
"next run, to capture the instant at which this block was passed out. The "
888+
"static function bumpserialno() in obmalloc.c is the only place the serial "
889+
"number is incremented, and exists so you can set such a breakpoint easily."
890890
msgstr ""
891891

892892
#: ../../c-api/memory.rst:590

c-api/method.po

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.12\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2023-05-09 00:15+0000\n"
11+
"POT-Creation-Date: 2023-07-24 00:03+0000\n"
1212
"PO-Revision-Date: 2022-01-24 22:22+0800\n"
1313
"Last-Translator: Matt Wang <[email protected]>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -25,9 +25,10 @@ msgid "Instance Method Objects"
2525
msgstr "實例方法物件 (Instance Method Objects)"
2626

2727
#: ../../c-api/method.rst:10
28+
#, fuzzy
2829
msgid ""
29-
"An instance method is a wrapper for a :c:data:`PyCFunction` and the new way "
30-
"to bind a :c:data:`PyCFunction` to a class object. It replaces the former "
30+
"An instance method is a wrapper for a :c:type:`PyCFunction` and the new way "
31+
"to bind a :c:type:`PyCFunction` to a class object. It replaces the former "
3132
"call ``PyMethod_New(func, NULL, class)``."
3233
msgstr ""
3334
"實例方法是 :c:data:`PyCFunction` 的包裝器 (wrapper),也是將 :c:data:"

c-api/module.po

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.12\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2023-07-22 00:04+0000\n"
11+
"POT-Creation-Date: 2023-07-24 00:03+0000\n"
1212
"PO-Revision-Date: 2018-05-23 14:32+0000\n"
1313
"Last-Translator: Adrian Liaw <[email protected]>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -148,7 +148,7 @@ msgid ""
148148
msgstr ""
149149

150150
#: ../../c-api/module.rst:148
151-
msgid "Always initialize this member to :c:data:`PyModuleDef_HEAD_INIT`."
151+
msgid "Always initialize this member to :c:macro:`PyModuleDef_HEAD_INIT`."
152152
msgstr ""
153153

154154
#: ../../c-api/module.rst:152

c-api/refcounting.po

+10-9
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.12\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2023-07-17 17:39+0800\n"
11+
"POT-Creation-Date: 2023-07-24 00:03+0000\n"
1212
"PO-Revision-Date: 2023-07-01 14:19+0800\n"
1313
"Last-Translator: Matt Wang <[email protected]>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -162,16 +162,17 @@ msgstr ""
162162
"`Py_XDECREF`。"
163163

164164
#: ../../c-api/refcounting.rst:103
165+
#, fuzzy
165166
msgid ""
166167
"The deallocation function can cause arbitrary Python code to be invoked (e."
167-
"g. when a class instance with a :meth:`__del__` method is deallocated). "
168-
"While exceptions in such code are not propagated, the executed code has free "
169-
"access to all Python global variables. This means that any object that is "
170-
"reachable from a global variable should be in a consistent state before :c:"
171-
"func:`Py_DECREF` is invoked. For example, code to delete an object from a "
172-
"list should copy a reference to the deleted object in a temporary variable, "
173-
"update the list data structure, and then call :c:func:`Py_DECREF` for the "
174-
"temporary variable."
168+
"g. when a class instance with a :meth:`~object.__del__` method is "
169+
"deallocated). While exceptions in such code are not propagated, the "
170+
"executed code has free access to all Python global variables. This means "
171+
"that any object that is reachable from a global variable should be in a "
172+
"consistent state before :c:func:`Py_DECREF` is invoked. For example, code "
173+
"to delete an object from a list should copy a reference to the deleted "
174+
"object in a temporary variable, update the list data structure, and then "
175+
"call :c:func:`Py_DECREF` for the temporary variable."
175176
msgstr ""
176177
"釋放函式可以導致任意 Python 程式碼被調用(例如,當釋放具有 :meth:`__del__` 方"
177178
"法的類別實例時)。雖然此類程式碼中的例外不會被傳遞出來,但​​執行的程式碼可以自"

c-api/sequence.po

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-05-09 00:15+0000\n"
10+
"POT-Creation-Date: 2023-07-24 00:03+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:32+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -26,9 +26,9 @@ msgstr ""
2626
msgid ""
2727
"Return ``1`` if the object provides the sequence protocol, and ``0`` "
2828
"otherwise. Note that it returns ``1`` for Python classes with a :meth:"
29-
"`__getitem__` method, unless they are :class:`dict` subclasses, since in "
30-
"general it is impossible to determine what type of keys the class supports. "
31-
"This function always succeeds."
29+
"`~object.__getitem__` method, unless they are :class:`dict` subclasses, "
30+
"since in general it is impossible to determine what type of keys the class "
31+
"supports. This function always succeeds."
3232
msgstr ""
3333

3434
#: ../../c-api/sequence.rst:23

c-api/sys.po

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgid ""
1010
msgstr ""
1111
"Project-Id-Version: Python 3.12\n"
1212
"Report-Msgid-Bugs-To: \n"
13-
"POT-Creation-Date: 2023-07-22 00:04+0000\n"
13+
"POT-Creation-Date: 2023-07-24 00:03+0000\n"
1414
"PO-Revision-Date: 2018-05-23 14:07+0000\n"
1515
"Last-Translator: Adrian Liaw <[email protected]>\n"
1616
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -127,16 +127,16 @@ msgstr ""
127127
#: ../../c-api/sys.rst:108
128128
msgid ""
129129
"Return the current signal handler for signal *i*. This is a thin wrapper "
130-
"around either :c:func:`sigaction` or :c:func:`signal`. Do not call those "
130+
"around either :c:func:`!sigaction` or :c:func:`!signal`. Do not call those "
131131
"functions directly! :c:type:`PyOS_sighandler_t` is a typedef alias for :c:"
132132
"expr:`void (\\*)(int)`."
133133
msgstr ""
134134

135135
#: ../../c-api/sys.rst:116
136136
msgid ""
137137
"Set the signal handler for signal *i* to be *h*; return the old signal "
138-
"handler. This is a thin wrapper around either :c:func:`sigaction` or :c:func:"
139-
"`signal`. Do not call those functions directly! :c:type:"
138+
"handler. This is a thin wrapper around either :c:func:`!sigaction` or :c:"
139+
"func:`!signal`. Do not call those functions directly! :c:type:"
140140
"`PyOS_sighandler_t` is a typedef alias for :c:expr:`void (\\*)(int)`."
141141
msgstr ""
142142

c-api/type.po

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-07-22 00:04+0000\n"
10+
"POT-Creation-Date: 2023-07-24 00:03+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-"
@@ -246,8 +246,8 @@ msgid ""
246246
"not return the intended result. ``Py_TYPE(self)`` may be a *subclass* of the "
247247
"intended class, and subclasses are not necessarily defined in the same "
248248
"module as their superclass. See :c:type:`PyCMethod` to get the class that "
249-
"defines the method. See :c:func:`PyType_GetModuleByDef` for cases when "
250-
"``PyCMethod`` cannot be used."
249+
"defines the method. See :c:func:`PyType_GetModuleByDef` for cases when :c:"
250+
"type:`!PyCMethod` cannot be used."
251251
msgstr ""
252252

253253
#: ../../c-api/type.rst:225

c-api/typeobj.po

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-07-22 00:04+0000\n"
10+
"POT-Creation-Date: 2023-07-24 00:03+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:33+0000\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -3137,8 +3137,9 @@ msgstr ""
31373137

31383138
#: ../../c-api/typeobj.rst:2258
31393139
msgid ""
3140-
"The :c:data:`nb_reserved` field should always be ``NULL``. It was "
3141-
"previously called :c:data:`nb_long`, and was renamed in Python 3.0.1."
3140+
"The :c:member:`~PyNumberMethods.nb_reserved` field should always be "
3141+
"``NULL``. It was previously called :c:member:`!nb_long`, and was renamed in "
3142+
"Python 3.0.1."
31423143
msgstr ""
31433144

31443145
#: ../../c-api/typeobj.rst:2303

0 commit comments

Comments
 (0)