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

Appearance settings

Commit 30552b9

Browse filesBrowse files
sync with cpython d0176ed9
1 parent ee9b73a commit 30552b9
Copy full SHA for 30552b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

93 files changed

+1462
-1231
lines changed

‎c-api/arg.po

Copy file name to clipboardExpand all lines: c-api/arg.po
+3-3Lines changed: 3 additions & 3 deletions
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-17 17:39+0800\n"
10+
"POT-Creation-Date: 2023-07-22 00:04+0000\n"
1111
"PO-Revision-Date: 2022-10-16 03:21+0800\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -662,7 +662,7 @@ msgstr ""
662662
#: ../../c-api/arg.rst:345
663663
msgid ""
664664
"It is possible to pass \"long\" integers (integers whose value exceeds the "
665-
"platform's :const:`LONG_MAX`) however no proper range checking is done --- "
665+
"platform's :c:macro:`LONG_MAX`) however no proper range checking is done --- "
666666
"the most significant bits are silently truncated when the receiving field is "
667667
"too small to receive the value (actually, the semantics are inherited from "
668668
"downcasts in C --- your mileage may vary)."
@@ -807,7 +807,7 @@ msgstr ""
807807
msgid ""
808808
"A simpler form of parameter retrieval which does not use a format string to "
809809
"specify the types of the arguments. Functions which use this method to "
810-
"retrieve their parameters should be declared as :const:`METH_VARARGS` in "
810+
"retrieve their parameters should be declared as :c:macro:`METH_VARARGS` in "
811811
"function or method tables. The tuple containing the actual parameters "
812812
"should be passed as *args*; it must actually be a tuple. The length of the "
813813
"tuple must be at least *min* and no more than *max*; *min* and *max* may be "

‎c-api/call.po

Copy file name to clipboardExpand all lines: c-api/call.po
+16-10Lines changed: 16 additions & 10 deletions
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-22 00:04+0000\n"
1212
"PO-Revision-Date: 2022-10-16 03:20+0800\n"
1313
"Last-Translator: Matt Wang <mattwag44@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -111,11 +111,11 @@ msgstr ""
111111

112112
#: ../../c-api/call.rst:62
113113
msgid ""
114-
"The :const:`Py_TPFLAGS_HAVE_VECTORCALL` flag is now removed from a class "
114+
"The :c:macro:`Py_TPFLAGS_HAVE_VECTORCALL` flag is now removed from a class "
115115
"when the class's :py:meth:`~object.__call__` method is reassigned. (This "
116116
"internally sets :c:member:`~PyTypeObject.tp_call` only, and thus may make it "
117117
"behave differently than the vectorcall function.) In earlier Python "
118-
"versions, vectorcall should only be used with :const:`immutable "
118+
"versions, vectorcall should only be used with :c:macro:`immutable "
119119
"<Py_TPFLAGS_IMMUTABLETYPE>` or static types."
120120
msgstr ""
121121

@@ -131,8 +131,9 @@ msgstr ""
131131
"典),那麼實作 vectorcall 就沒有意義。"
132132

133133
#: ../../c-api/call.rst:74
134+
#, fuzzy
134135
msgid ""
135-
"Classes can implement the vectorcall protocol by enabling the :const:"
136+
"Classes can implement the vectorcall protocol by enabling the :c:macro:"
136137
"`Py_TPFLAGS_HAVE_VECTORCALL` flag and setting :c:member:`~PyTypeObject."
137138
"tp_vectorcall_offset` to the offset inside the object structure where a "
138139
"*vectorcallfunc* appears. This is a pointer to a function with the following "
@@ -162,8 +163,9 @@ msgid "*nargsf* is the number of positional arguments plus possibly the"
162163
msgstr "*nargsf* 是位置引數的數量加上可能會有的"
163164

164165
#: ../../c-api/call.rst:87
166+
#, fuzzy
165167
msgid ""
166-
":const:`PY_VECTORCALL_ARGUMENTS_OFFSET` flag. To get the actual number of "
168+
":c:macro:`PY_VECTORCALL_ARGUMENTS_OFFSET` flag. To get the actual number of "
167169
"positional arguments from *nargsf*, use :c:func:`PyVectorcall_NARGS`."
168170
msgstr ""
169171
":const:`PY_VECTORCALL_ARGUMENTS_OFFSET` 旗標。如果要從 *nargsf* 獲得實際的位"
@@ -203,9 +205,10 @@ msgstr ""
203205
"``args[0]`` 被改變。"
204206

205207
#: ../../c-api/call.rst:106
208+
#, fuzzy
206209
msgid ""
207210
"Whenever they can do so cheaply (without additional allocation), callers are "
208-
"encouraged to use :const:`PY_VECTORCALL_ARGUMENTS_OFFSET`. Doing so will "
211+
"encouraged to use :c:macro:`PY_VECTORCALL_ARGUMENTS_OFFSET`. Doing so will "
209212
"allow callables such as bound methods to make their onward calls (which "
210213
"include a prepended *self* argument) very efficiently."
211214
msgstr ""
@@ -312,10 +315,11 @@ msgstr ""
312315
"tuple 和 dict 格式給定。"
313316

314317
#: ../../c-api/call.rst:175
318+
#, fuzzy
315319
msgid ""
316320
"This is a specialized function, intended to be put in the :c:member:"
317321
"`~PyTypeObject.tp_call` slot or be used in an implementation of ``tp_call``. "
318-
"It does not check the :const:`Py_TPFLAGS_HAVE_VECTORCALL` flag and it does "
322+
"It does not check the :c:macro:`Py_TPFLAGS_HAVE_VECTORCALL` flag and it does "
319323
"not fall back to ``tp_call``."
320324
msgstr ""
321325
"這是一個專門函式,其目的是被放入 :c:member:`~PyTypeObject.tp_call` 擴充槽或是"
@@ -649,13 +653,14 @@ msgstr ""
649653
"方已經擁有一個要作為關鍵字引數的字典、但沒有作為位置引數的 tuple 時才被使用。"
650654

651655
#: ../../c-api/call.rst:390
656+
#, fuzzy
652657
msgid ""
653658
"Call a method using the vectorcall calling convention. The name of the "
654659
"method is given as a Python string *name*. The object whose method is called "
655660
"is *args[0]*, and the *args* array starting at *args[1]* represents the "
656661
"arguments of the call. There must be at least one positional argument. "
657-
"*nargsf* is the number of positional arguments including *args[0]*, plus :"
658-
"const:`PY_VECTORCALL_ARGUMENTS_OFFSET` if the value of ``args[0]`` may "
662+
"*nargsf* is the number of positional arguments including *args[0]*, plus :c:"
663+
"macro:`PY_VECTORCALL_ARGUMENTS_OFFSET` if the value of ``args[0]`` may "
659664
"temporarily be changed. Keyword arguments can be passed just like in :c:func:"
660665
"`PyObject_Vectorcall`."
661666
msgstr ""
@@ -667,8 +672,9 @@ msgstr ""
667672
"`PyObject_Vectorcall` 中一樣被傳入。"
668673

669674
#: ../../c-api/call.rst:399
675+
#, fuzzy
670676
msgid ""
671-
"If the object has the :const:`Py_TPFLAGS_METHOD_DESCRIPTOR` feature, this "
677+
"If the object has the :c:macro:`Py_TPFLAGS_METHOD_DESCRIPTOR` feature, this "
672678
"will call the unbound method object with the full *args* vector as arguments."
673679
msgstr ""
674680
"如果物件具有 :const:`Py_TPFLAGS_METHOD_DESCRIPTOR` 特性,這將以完整的 *args* "

‎c-api/complex.po

Copy file name to clipboardExpand all lines: c-api/complex.po
+3-3Lines changed: 3 additions & 3 deletions
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-06-30 15:31+0000\n"
10+
"POT-Creation-Date: 2023-07-22 00:04+0000\n"
1111
"PO-Revision-Date: 2015-12-09 17:51+0000\n"
1212
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -82,7 +82,7 @@ msgstr ""
8282
#: ../../c-api/complex.rst:66
8383
msgid ""
8484
"If *divisor* is null, this method returns zero and sets :c:data:`errno` to :"
85-
"c:data:`EDOM`."
85+
"c:macro:`EDOM`."
8686
msgstr ""
8787

8888
#: ../../c-api/complex.rst:72
@@ -94,7 +94,7 @@ msgstr ""
9494
#: ../../c-api/complex.rst:75
9595
msgid ""
9696
"If *num* is null and *exp* is not a positive real number, this method "
97-
"returns zero and sets :c:data:`errno` to :c:data:`EDOM`."
97+
"returns zero and sets :c:data:`errno` to :c:macro:`EDOM`."
9898
msgstr ""
9999

100100
#: ../../c-api/complex.rst:80

‎c-api/exceptions.po

Copy file name to clipboardExpand all lines: c-api/exceptions.po
+12-12Lines changed: 12 additions & 12 deletions
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-22 00:04+0000\n"
1212
"PO-Revision-Date: 2018-05-23 14:05+0000\n"
1313
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -203,7 +203,7 @@ msgid ""
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 :"
205205
"c:func:`strerror`), and then calls ``PyErr_SetObject(type, object)``. On "
206-
"Unix, when the :c:data:`errno` value is :const:`EINTR`, indicating an "
206+
"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 "
209209
"returns ``NULL``, so a wrapper function around a system call can write "
@@ -649,14 +649,14 @@ msgstr ""
649649

650650
#: ../../c-api/exceptions.rst:634
651651
msgid ""
652-
"The default Python signal handler for :const:`SIGINT` raises the :exc:"
652+
"The default Python signal handler for :c:macro:`SIGINT` raises the :exc:"
653653
"`KeyboardInterrupt` exception."
654654
msgstr ""
655655

656656
#: ../../c-api/exceptions.rst:645
657657
msgid ""
658-
"Simulate the effect of a :const:`SIGINT` signal arriving. This is equivalent "
659-
"to ``PyErr_SetInterruptEx(SIGINT)``."
658+
"Simulate the effect of a :c:macro:`SIGINT` signal arriving. This is "
659+
"equivalent to ``PyErr_SetInterruptEx(SIGINT)``."
660660
msgstr ""
661661

662662
#: ../../c-api/exceptions.rst:649 ../../c-api/exceptions.rst:676
@@ -682,8 +682,8 @@ msgstr ""
682682

683683
#: ../../c-api/exceptions.rst:668
684684
msgid ""
685-
"If the given signal isn't handled by Python (it was set to :data:`signal."
686-
"SIG_DFL` or :data:`signal.SIG_IGN`), it will be ignored."
685+
"If the given signal isn't handled by Python (it was set to :py:const:`signal."
686+
"SIG_DFL` or :py:const:`signal.SIG_IGN`), it will be ignored."
687687
msgstr ""
688688

689689
#: ../../c-api/exceptions.rst:671
@@ -776,7 +776,7 @@ msgstr ""
776776

777777
#: ../../c-api/exceptions.rst:757
778778
msgid ""
779-
"Return the cause (either an exception instance, or :const:`None`, set by "
779+
"Return the cause (either an exception instance, or ``None``, set by "
780780
"``raise ... from ...``) associated with the exception as a new reference, as "
781781
"accessible from Python through :attr:`__cause__`."
782782
msgstr ""
@@ -785,7 +785,7 @@ msgstr ""
785785
msgid ""
786786
"Set the cause associated with the exception to *cause*. Use ``NULL`` to "
787787
"clear it. There is no type check to make sure that *cause* is either an "
788-
"exception instance or :const:`None`. This steals a reference to *cause*."
788+
"exception instance or ``None``. This steals a reference to *cause*."
789789
msgstr ""
790790

791791
#: ../../c-api/exceptions.rst:768
@@ -894,9 +894,9 @@ msgstr ""
894894

895895
#: ../../c-api/exceptions.rst:877
896896
msgid ""
897-
"If :const:`USE_STACKCHECK` is defined, this function checks if the OS stack "
898-
"overflowed using :c:func:`PyOS_CheckStack`. In this is the case, it sets a :"
899-
"exc:`MemoryError` and returns a nonzero value."
897+
"If :c:macro:`USE_STACKCHECK` is defined, this function checks if the OS "
898+
"stack overflowed using :c:func:`PyOS_CheckStack`. In this is the case, it "
899+
"sets a :exc:`MemoryError` and returns a nonzero value."
900900
msgstr ""
901901

902902
#: ../../c-api/exceptions.rst:881

‎c-api/file.po

Copy file name to clipboardExpand all lines: c-api/file.po
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: Python 3.12\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2023-05-09 00:15+0000\n"
12+
"POT-Creation-Date: 2023-07-22 00:04+0000\n"
1313
"PO-Revision-Date: 2023-04-24 20:38+0800\n"
1414
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -160,11 +160,12 @@ msgstr ""
160160
"``setopencodehook``\\ 。"
161161

162162
#: ../../c-api/file.rst:95
163+
#, fuzzy
163164
msgid ""
164165
"Write object *obj* to file object *p*. The only supported flag for *flags* "
165-
"is :const:`Py_PRINT_RAW`; if given, the :func:`str` of the object is written "
166-
"instead of the :func:`repr`. Return ``0`` on success or ``-1`` on failure; "
167-
"the appropriate exception will be set."
166+
"is :c:macro:`Py_PRINT_RAW`; if given, the :func:`str` of the object is "
167+
"written instead of the :func:`repr`. Return ``0`` on success or ``-1`` on "
168+
"failure; the appropriate exception will be set."
168169
msgstr ""
169170
"將物件 *obj* 寫入檔案物件 *p*。 *flags* 唯一支援的旗標是 :const:"
170171
"`Py_PRINT_RAW`;如果有給定,則寫入物件的 :func:`str` 而不是 :func:`repr`。在"

‎c-api/float.po

Copy file name to clipboardExpand all lines: c-api/float.po
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: Python 3.12\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2023-06-30 15:31+0000\n"
12+
"POT-Creation-Date: 2023-07-22 00:04+0000\n"
1313
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
1414
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -138,9 +138,9 @@ msgid ""
138138
"The pack routines write 2, 4 or 8 bytes, starting at *p*. *le* is an :c:expr:"
139139
"`int` argument, non-zero if you want the bytes string in little-endian "
140140
"format (exponent last, at ``p+1``, ``p+3``, or ``p+6`` ``p+7``), zero if you "
141-
"want big-endian format (exponent first, at *p*). The :c:data:`PY_BIG_ENDIAN` "
142-
"constant can be used to use the native endian: it is equal to ``1`` on big "
143-
"endian processor, or ``0`` on little endian processor."
141+
"want big-endian format (exponent first, at *p*). The :c:macro:"
142+
"`PY_BIG_ENDIAN` constant can be used to use the native endian: it is equal "
143+
"to ``1`` on big endian processor, or ``0`` on little endian processor."
144144
msgstr ""
145145

146146
#: ../../c-api/float.rst:116
@@ -182,9 +182,9 @@ msgid ""
182182
"The unpack routines read 2, 4 or 8 bytes, starting at *p*. *le* is an :c:"
183183
"expr:`int` argument, non-zero if the bytes string is in little-endian format "
184184
"(exponent last, at ``p+1``, ``p+3`` or ``p+6`` and ``p+7``), zero if big-"
185-
"endian (exponent first, at *p*). The :c:data:`PY_BIG_ENDIAN` constant can be "
186-
"used to use the native endian: it is equal to ``1`` on big endian processor, "
187-
"or ``0`` on little endian processor."
185+
"endian (exponent first, at *p*). The :c:macro:`PY_BIG_ENDIAN` constant can "
186+
"be used to use the native endian: it is equal to ``1`` on big endian "
187+
"processor, or ``0`` on little endian processor."
188188
msgstr ""
189189

190190
#: ../../c-api/float.rst:147

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.