Skip to content

Commit dbfee6f

Browse files
sync with cpython f68d634d
1 parent 6f2560b commit dbfee6f

File tree

6 files changed

+396
-382
lines changed

6 files changed

+396
-382
lines changed

c-api/object.po

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.14\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2025-11-05 00:16+0000\n"
9+
"POT-Creation-Date: 2026-02-03 00:20+0000\n"
1010
"PO-Revision-Date: 2018-05-23 14:32+0000\n"
1111
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -821,14 +821,14 @@ msgstr ""
821821
#: ../../c-api/object.rst:668
822822
msgid ""
823823
":c:func:`PyUnstable_EnableTryIncRef` must have been called earlier on *obj* "
824-
"or this function may spuriously return ``0`` in the :term:`free threading` "
825-
"build."
824+
"or this function may spuriously return ``0`` in the :term:`free-threaded "
825+
"build`."
826826
msgstr ""
827827

828828
#: ../../c-api/object.rst:672
829829
msgid ""
830830
"This function is logically equivalent to the following C code, except that "
831-
"it behaves atomically in the :term:`free threading` build::"
831+
"it behaves atomically in the :term:`free-threaded build`::"
832832
msgstr ""
833833

834834
#: ../../c-api/object.rst:675
@@ -922,10 +922,10 @@ msgstr ""
922922

923923
#: ../../c-api/object.rst:750
924924
msgid ""
925-
"On a :term:`free threaded <free threading>` build, this checks if *op*'s :"
926-
"term:`reference count` is equal to one and additionally checks if *op* is "
927-
"only used by this thread. :c:expr:`Py_REFCNT(op) == 1` is **not** thread-"
928-
"safe on free threaded builds; prefer this function."
925+
"On a :term:`free-threaded build`, this checks if *op*'s :term:`reference "
926+
"count` is equal to one and additionally checks if *op* is only used by this "
927+
"thread. :c:expr:`Py_REFCNT(op) == 1` is **not** thread-safe on free-threaded "
928+
"builds; prefer this function."
929929
msgstr ""
930930

931931
#: ../../c-api/object.rst:755

c-api/refcounting.po

Lines changed: 38 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.14\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-09-08 15:25+0800\n"
11+
"POT-Creation-Date: 2026-02-03 00:20+0000\n"
1212
"PO-Revision-Date: 2023-08-06 14:19+0800\n"
1313
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -37,10 +37,10 @@ msgstr "取得物件 *o* 的參照計數。"
3737
#: ../../c-api/refcounting.rst:18
3838
msgid ""
3939
"Note that the returned value may not actually reflect how many references to "
40-
"the object are actually held. For example, some objects "
41-
"are :term:`immortal` and have a very high refcount that does not reflect the "
42-
"actual number of references. Consequently, do not rely on the returned "
43-
"value to be accurate, other than a value of 0 or 1."
40+
"the object are actually held. For example, some objects are :term:"
41+
"`immortal` and have a very high refcount that does not reflect the actual "
42+
"number of references. Consequently, do not rely on the returned value to be "
43+
"accurate, other than a value of 0 or 1."
4444
msgstr ""
4545
"請注意,回傳的值可能實際上並不反映實際保存了多少對該物件的參照。例如,某些物"
4646
"件是「:term:`不滅的 (immortal) <immortal>`」,並且具有非常高的參照計數,不能"
@@ -53,16 +53,16 @@ msgstr "使用 :c:func:`Py_SET_REFCNT()` 函式設定物件參照計數。"
5353

5454
#: ../../c-api/refcounting.rst:28
5555
msgid ""
56-
"On :term:`free threaded <free threading>` builds of Python, returning 1 "
56+
"On :term:`free-threaded builds <free-threaded build>` of Python, returning 1 "
5757
"isn't sufficient to determine if it's safe to treat *o* as having no access "
5858
"by other threads. Use :c:func:`PyUnstable_Object_IsUniquelyReferenced` for "
5959
"that instead."
6060
msgstr ""
6161

6262
#: ../../c-api/refcounting.rst:33
6363
msgid ""
64-
"See also the "
65-
"function :c:func:`PyUnstable_Object_IsUniqueReferencedTemporary()`."
64+
"See also the function :c:func:"
65+
"`PyUnstable_Object_IsUniqueReferencedTemporary()`."
6666
msgstr ""
6767

6868
#: ../../c-api/refcounting.rst:35
@@ -106,8 +106,8 @@ msgstr ""
106106

107107
#: ../../c-api/refcounting.rst:64
108108
msgid ""
109-
"This function is usually used to convert a :term:`borrowed reference` to "
110-
"a :term:`strong reference` in-place. The :c:func:`Py_NewRef` function can be "
109+
"This function is usually used to convert a :term:`borrowed reference` to a :"
110+
"term:`strong reference` in-place. The :c:func:`Py_NewRef` function can be "
111111
"used to create a new :term:`strong reference`."
112112
msgstr ""
113113
"此函式通常用於將\\ :term:`借用參照 <borrowed reference>`\\ 原地 (in-place) 轉"
@@ -123,13 +123,13 @@ msgid ""
123123
"The object must not be ``NULL``; if you aren't sure that it isn't ``NULL``, "
124124
"use :c:func:`Py_XINCREF`."
125125
msgstr ""
126-
"該物件不能為 ``NULL``;如果你不確定它不是 ``NULL``,請使"
127-
"用 :c:func:`Py_XINCREF`。"
126+
"該物件不能為 ``NULL``;如果你不確定它不是 ``NULL``,請使用 :c:func:"
127+
"`Py_XINCREF`。"
128128

129129
#: ../../c-api/refcounting.rst:73
130130
msgid ""
131-
"Do not expect this function to actually modify *o* in any way. For at "
132-
"least :pep:`some objects <0683>`, this function has no effect."
131+
"Do not expect this function to actually modify *o* in any way. For at least :"
132+
"pep:`some objects <0683>`, this function has no effect."
133133
msgstr ""
134134
"不要期望此函式會以任何方式實際修改 *o*,至少對於\\ :pep:`某些物件 <0683>`\\ "
135135
"來說,此函式沒有任何效果。"
@@ -151,24 +151,24 @@ msgid ""
151151
"Create a new :term:`strong reference` to an object: call :c:func:`Py_INCREF` "
152152
"on *o* and return the object *o*."
153153
msgstr ""
154-
"建立對物件的新\\ :term:`強參照 <strong reference>`:於 *o* "
155-
"叫 :c:func:`Py_INCREF` 並回傳物件 *o*。"
154+
"建立對物件的新\\ :term:`強參照 <strong reference>`:於 *o* 呼叫 :c:func:"
155+
"`Py_INCREF` 並回傳物件 *o*。"
156156

157157
#: ../../c-api/refcounting.rst:94
158158
msgid ""
159159
"When the :term:`strong reference` is no longer needed, :c:func:`Py_DECREF` "
160160
"should be called on it to release the reference."
161161
msgstr ""
162-
"當不再需要\\ :term:`強參照 <strong reference>`\\ 時,應對其呼"
163-
"叫 :c:func:`Py_DECREF` 以釋放該參照。"
162+
"當不再需要\\ :term:`強參照 <strong reference>`\\ 時,應對其呼叫 :c:func:"
163+
"`Py_DECREF` 以釋放該參照。"
164164

165165
#: ../../c-api/refcounting.rst:97
166166
msgid ""
167167
"The object *o* must not be ``NULL``; use :c:func:`Py_XNewRef` if *o* can be "
168168
"``NULL``."
169169
msgstr ""
170-
"物件 *o* 不能為 ``NULL``;如果 *o* 可以為 ``NULL``,則使"
171-
"用 :c:func:`Py_XNewRef`。"
170+
"物件 *o* 不能為 ``NULL``;如果 *o* 可以為 ``NULL``,則使用 :c:func:"
171+
"`Py_XNewRef`。"
172172

173173
#: ../../c-api/refcounting.rst:100
174174
msgid "For example::"
@@ -232,21 +232,21 @@ msgid ""
232232
"The object must not be ``NULL``; if you aren't sure that it isn't ``NULL``, "
233233
"use :c:func:`Py_XDECREF`."
234234
msgstr ""
235-
"該物件不能為 ``NULL``;如果你不確定它不是 ``NULL``,請改"
236-
"用 :c:func:`Py_XDECREF`。"
235+
"該物件不能為 ``NULL``;如果你不確定它不是 ``NULL``,請改用 :c:func:"
236+
"`Py_XDECREF`。"
237237

238238
#: ../../c-api/refcounting.rst:141
239239
msgid ""
240-
"Do not expect this function to actually modify *o* in any way. For at "
241-
"least :pep:`some objects <683>`, this function has no effect."
240+
"Do not expect this function to actually modify *o* in any way. For at least :"
241+
"pep:`some objects <683>`, this function has no effect."
242242
msgstr ""
243243
"不要期望此函式會以任何方式實際修改 *o*,至少對於\\ :pep:`某些物件 <683>`\\ 來"
244244
"說,此函式沒有任何效果。"
245245

246246
#: ../../c-api/refcounting.rst:147
247247
msgid ""
248-
"The deallocation function can cause arbitrary Python code to be invoked "
249-
"(e.g. when a class instance with a :meth:`~object.__del__` method is "
248+
"The deallocation function can cause arbitrary Python code to be invoked (e."
249+
"g. when a class instance with a :meth:`~object.__del__` method is "
250250
"deallocated). While exceptions in such code are not propagated, the "
251251
"executed code has free access to all Python global variables. This means "
252252
"that any object that is reachable from a global variable should be in a "
@@ -255,12 +255,12 @@ msgid ""
255255
"object in a temporary variable, update the list data structure, and then "
256256
"call :c:func:`Py_DECREF` for the temporary variable."
257257
msgstr ""
258-
"釋放函式可以導致任意 Python 程式碼被叫用(例如,當釋放具"
259-
"有 :meth:`~object.__del__` 方法的類別實例時)。雖然此類程式碼中的例外不會被傳"
260-
"遞出來,但​​執行的程式碼可以自由存取所有 Python 全域變數。這意味著在叫"
261-
"用 :c:func:`Py_DECREF` 之前,可從全域變數存取的任何物件都應處於一致狀態。"
262-
"如,從 list 中刪除物件的程式碼應將已刪除物件的參照複製到臨時變數中,更新 "
263-
"list 資料結構,然後為臨時變數呼叫 :c:func:`Py_DECREF`。"
258+
"釋放函式可以導致任意 Python 程式碼被叫用(例如,當釋放具有 :meth:`~object."
259+
"__del__` 方法的類別實例時)。雖然此類程式碼中的例外不會被傳遞出來,但​​執行的程"
260+
"式碼可以自由存取所有 Python 全域變數。這意味著在叫用 :c:func:`Py_DECREF` 之"
261+
",可從全域變數存取的任何物件都應處於一致狀態。例如,從 list 中刪除物件的程"
262+
"式碼應將已刪除物件的參照複製到臨時變數中,更新 list 資料結構,然後為臨時變數"
263+
"呼叫 :c:func:`Py_DECREF`。"
264264

265265
#: ../../c-api/refcounting.rst:162
266266
msgid ""
@@ -307,15 +307,13 @@ msgid ""
307307
"version of :c:func:`Py_XINCREF`. It can be used for runtime dynamic "
308308
"embedding of Python."
309309
msgstr ""
310-
"代表取得對於物件 *o* 的\\ :term:`強參照 <strong "
311-
"reference>`。:c:func:`Py_XINCREF` 的函式版本。它可用於 Python 的 runtime 動態"
312-
"嵌入。"
310+
"代表取得對於物件 *o* 的\\ :term:`強參照 <strong reference>`。:c:func:"
311+
"`Py_XINCREF` 的函式版本。它可用於 Python 的 runtime 動態嵌入。"
313312

314313
#: ../../c-api/refcounting.rst:194
315314
msgid ""
316-
"Release a :term:`strong reference` to object *o*. A function version "
317-
"of :c:func:`Py_XDECREF`. It can be used for runtime dynamic embedding of "
318-
"Python."
315+
"Release a :term:`strong reference` to object *o*. A function version of :c:"
316+
"func:`Py_XDECREF`. It can be used for runtime dynamic embedding of Python."
319317
msgstr ""
320318
"釋放對物件 *o* 的\\ :term:`強參照 <strong reference>`。:c:func:`Py_XDECREF` "
321319
"的函式版本。它可用於 Python 的 runtime 動態嵌入。"
@@ -369,5 +367,5 @@ msgid ""
369367
"Variant of :c:macro:`Py_SETREF` macro that uses :c:func:`Py_XDECREF` instead "
370368
"of :c:func:`Py_DECREF`."
371369
msgstr ""
372-
":c:macro:`Py_SETREF` 巨集的變體,請改用 :c:func:`Py_XDECREF` "
373-
"非 :c:func:`Py_DECREF`。"
370+
":c:macro:`Py_SETREF` 巨集的變體,請改用 :c:func:`Py_XDECREF` 而非 :c:func:"
371+
"`Py_DECREF`。"

0 commit comments

Comments
 (0)