Skip to content

Commit d6f6982

Browse files
sync with cpython cccc0662
1 parent cd02c68 commit d6f6982

File tree

10 files changed

+327
-241
lines changed

10 files changed

+327
-241
lines changed

deprecations/index.po

+24-18
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.13\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2024-11-04 00:14+0000\n"
9+
"POT-Creation-Date: 2024-11-05 00:13+0000\n"
1010
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1111
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1212
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -255,25 +255,13 @@ msgstr ""
255255

256256
#: ../../deprecations/pending-removal-in-3.14.rst:106
257257
msgid ""
258-
":class:`types.CodeType`: Accessing :attr:`~codeobject.co_lnotab` was "
259-
"deprecated in :pep:`626` since 3.10 and was planned to be removed in 3.12, "
260-
"but it only got a proper :exc:`DeprecationWarning` in 3.12. May be removed "
261-
"in 3.14. (Contributed by Nikita Sobolev in :gh:`101866`.)"
262-
msgstr ""
263-
":class:`types.CodeType`:自 3.10 起,存取 :attr:`~codeobject.co_lnotab` 已"
264-
"在 :pep:`626` 中被棄用,並計劃在 3.12 中移除,但只在 3.12 中於適當時發出 :"
265-
"exc:`DeprecationWarning`。可能在 3.14 中移除。(由 Nikita Sobolev 於 :gh:"
266-
"`101866` 貢獻。)"
267-
268-
#: ../../deprecations/pending-removal-in-3.14.rst:113
269-
msgid ""
270258
":mod:`typing`: :class:`~typing.ByteString`, deprecated since Python 3.9, now "
271259
"causes a :exc:`DeprecationWarning` to be emitted when it is used."
272260
msgstr ""
273261
":mod:`typing`:自 Python 3.9 起已被棄用的 :class:`~typing.ByteString` 現在在"
274262
"使用時會發出 :exc:`DeprecationWarning`。"
275263

276-
#: ../../deprecations/pending-removal-in-3.14.rst:116
264+
#: ../../deprecations/pending-removal-in-3.14.rst:109
277265
msgid ""
278266
":mod:`urllib`: :class:`!urllib.parse.Quoter` is deprecated: it was not "
279267
"intended to be a public API. (Contributed by Gregory P. Smith in :gh:"
@@ -400,10 +388,28 @@ msgstr ""
400388
"任意數量的位置或關鍵字引數,並忽略每個引數。"
401389

402390
#: ../../deprecations/pending-removal-in-3.15.rst:62
391+
#, fuzzy
392+
msgid ":mod:`types`:"
393+
msgstr ":mod:`ctypes`:"
394+
395+
#: ../../deprecations/pending-removal-in-3.15.rst:64
396+
#, fuzzy
397+
msgid ""
398+
":class:`types.CodeType`: Accessing :attr:`~codeobject.co_lnotab` was "
399+
"deprecated in :pep:`626` since 3.10 and was planned to be removed in 3.12, "
400+
"but it only got a proper :exc:`DeprecationWarning` in 3.12. May be removed "
401+
"in 3.15. (Contributed by Nikita Sobolev in :gh:`101866`.)"
402+
msgstr ""
403+
":class:`types.CodeType`:自 3.10 起,存取 :attr:`~codeobject.co_lnotab` 已"
404+
"在 :pep:`626` 中被棄用,並計劃在 3.12 中移除,但只在 3.12 中於適當時發出 :"
405+
"exc:`DeprecationWarning`。可能在 3.14 中移除。(由 Nikita Sobolev 於 :gh:"
406+
"`101866` 貢獻。)"
407+
408+
#: ../../deprecations/pending-removal-in-3.15.rst:71
403409
msgid ":mod:`typing`:"
404410
msgstr ":mod:`typing`:"
405411

406-
#: ../../deprecations/pending-removal-in-3.15.rst:64
412+
#: ../../deprecations/pending-removal-in-3.15.rst:73
407413
msgid ""
408414
"The undocumented keyword argument syntax for creating :class:`~typing."
409415
"NamedTuple` classes (e.g. ``Point = NamedTuple(\"Point\", x=int, y=int)``) "
@@ -414,7 +420,7 @@ msgstr ""
414420
"(``Point = NamedTuple(\"Point\", x=int, y=int)``) 已自 Python 3.13 棄用。請改"
415421
"用基於類別的語法或函式語法 (functional syntax)。"
416422

417-
#: ../../deprecations/pending-removal-in-3.15.rst:70
423+
#: ../../deprecations/pending-removal-in-3.15.rst:79
418424
msgid ""
419425
"The :func:`typing.no_type_check_decorator` decorator function has been "
420426
"deprecated since Python 3.13. After eight years in the :mod:`typing` module, "
@@ -424,11 +430,11 @@ msgstr ""
424430
"用。在 :mod:`typing` 模組中使用了八年之後,它尚未得到任何主要型別檢查器的支"
425431
"援。"
426432

427-
#: ../../deprecations/pending-removal-in-3.15.rst:75
433+
#: ../../deprecations/pending-removal-in-3.15.rst:84
428434
msgid ":mod:`wave`:"
429435
msgstr ":mod:`wave`:"
430436

431-
#: ../../deprecations/pending-removal-in-3.15.rst:77
437+
#: ../../deprecations/pending-removal-in-3.15.rst:86
432438
msgid ""
433439
"The :meth:`~wave.Wave_read.getmark`, :meth:`!setmark`, and :meth:`~wave."
434440
"Wave_read.getmarkers` methods of the :class:`~wave.Wave_read` and :class:"

deprecations/pending-removal-in-3.14.po

+13-14
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.13\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2024-11-04 00:14+0000\n"
9+
"POT-Creation-Date: 2024-11-05 00:13+0000\n"
1010
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1111
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1212
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -249,25 +249,13 @@ msgstr ""
249249

250250
#: ../../deprecations/pending-removal-in-3.14.rst:106
251251
msgid ""
252-
":class:`types.CodeType`: Accessing :attr:`~codeobject.co_lnotab` was "
253-
"deprecated in :pep:`626` since 3.10 and was planned to be removed in 3.12, "
254-
"but it only got a proper :exc:`DeprecationWarning` in 3.12. May be removed "
255-
"in 3.14. (Contributed by Nikita Sobolev in :gh:`101866`.)"
256-
msgstr ""
257-
":class:`types.CodeType`:自 3.10 起,存取 :attr:`~codeobject.co_lnotab` 已"
258-
"在 :pep:`626` 中被棄用,並計劃在 3.12 中移除,但只在 3.12 中於適當時發出 :"
259-
"exc:`DeprecationWarning`。可能在 3.14 中移除。(由 Nikita Sobolev 於 :gh:"
260-
"`101866` 貢獻。)"
261-
262-
#: ../../deprecations/pending-removal-in-3.14.rst:113
263-
msgid ""
264252
":mod:`typing`: :class:`~typing.ByteString`, deprecated since Python 3.9, now "
265253
"causes a :exc:`DeprecationWarning` to be emitted when it is used."
266254
msgstr ""
267255
":mod:`typing`:自 Python 3.9 起已被棄用的 :class:`~typing.ByteString` 現在在"
268256
"使用時會發出 :exc:`DeprecationWarning`。"
269257

270-
#: ../../deprecations/pending-removal-in-3.14.rst:116
258+
#: ../../deprecations/pending-removal-in-3.14.rst:109
271259
msgid ""
272260
":mod:`urllib`: :class:`!urllib.parse.Quoter` is deprecated: it was not "
273261
"intended to be a public API. (Contributed by Gregory P. Smith in :gh:"
@@ -276,6 +264,17 @@ msgstr ""
276264
":mod:`urllib`::class:`!urllib.parse.Quoter` 已被棄用:它並非預期的公開 API。"
277265
"(由 Gregory P. Smith 於 :gh:`88168` 貢獻。)"
278266

267+
#~ msgid ""
268+
#~ ":class:`types.CodeType`: Accessing :attr:`~codeobject.co_lnotab` was "
269+
#~ "deprecated in :pep:`626` since 3.10 and was planned to be removed in "
270+
#~ "3.12, but it only got a proper :exc:`DeprecationWarning` in 3.12. May be "
271+
#~ "removed in 3.14. (Contributed by Nikita Sobolev in :gh:`101866`.)"
272+
#~ msgstr ""
273+
#~ ":class:`types.CodeType`:自 3.10 起,存取 :attr:`~codeobject.co_lnotab` 已"
274+
#~ "在 :pep:`626` 中被棄用,並計劃在 3.12 中移除,但只在 3.12 中於適當時發出 :"
275+
#~ "exc:`DeprecationWarning`。可能在 3.14 中移除。(由 Nikita Sobolev 於 :gh:"
276+
#~ "`101866` 貢獻。)"
277+
279278
#~ msgid ""
280279
#~ "date and datetime adapter, date and timestamp converter: see the :mod:"
281280
#~ "`sqlite3` documentation for suggested replacement recipes."

deprecations/pending-removal-in-3.15.po

+18-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: Python 3.13\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2024-10-15 00:14+0000\n"
9+
"POT-Creation-Date: 2024-11-05 00:13+0000\n"
1010
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1111
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1212
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -136,10 +136,23 @@ msgstr ""
136136
"任意數量的位置或關鍵字引數,並忽略每個引數。"
137137

138138
#: ../../deprecations/pending-removal-in-3.15.rst:62
139+
#, fuzzy
140+
msgid ":mod:`types`:"
141+
msgstr ":mod:`ctypes`:"
142+
143+
#: ../../deprecations/pending-removal-in-3.15.rst:64
144+
msgid ""
145+
":class:`types.CodeType`: Accessing :attr:`~codeobject.co_lnotab` was "
146+
"deprecated in :pep:`626` since 3.10 and was planned to be removed in 3.12, "
147+
"but it only got a proper :exc:`DeprecationWarning` in 3.12. May be removed "
148+
"in 3.15. (Contributed by Nikita Sobolev in :gh:`101866`.)"
149+
msgstr ""
150+
151+
#: ../../deprecations/pending-removal-in-3.15.rst:71
139152
msgid ":mod:`typing`:"
140153
msgstr ":mod:`typing`:"
141154

142-
#: ../../deprecations/pending-removal-in-3.15.rst:64
155+
#: ../../deprecations/pending-removal-in-3.15.rst:73
143156
msgid ""
144157
"The undocumented keyword argument syntax for creating :class:`~typing."
145158
"NamedTuple` classes (e.g. ``Point = NamedTuple(\"Point\", x=int, y=int)``) "
@@ -150,7 +163,7 @@ msgstr ""
150163
"(``Point = NamedTuple(\"Point\", x=int, y=int)``) 已自 Python 3.13 棄用。請改"
151164
"用基於類別的語法或函式語法 (functional syntax)。"
152165

153-
#: ../../deprecations/pending-removal-in-3.15.rst:70
166+
#: ../../deprecations/pending-removal-in-3.15.rst:79
154167
msgid ""
155168
"The :func:`typing.no_type_check_decorator` decorator function has been "
156169
"deprecated since Python 3.13. After eight years in the :mod:`typing` module, "
@@ -160,11 +173,11 @@ msgstr ""
160173
"用。在 :mod:`typing` 模組中使用了八年之後,它尚未得到任何主要型別檢查器的支"
161174
"援。"
162175

163-
#: ../../deprecations/pending-removal-in-3.15.rst:75
176+
#: ../../deprecations/pending-removal-in-3.15.rst:84
164177
msgid ":mod:`wave`:"
165178
msgstr ":mod:`wave`:"
166179

167-
#: ../../deprecations/pending-removal-in-3.15.rst:77
180+
#: ../../deprecations/pending-removal-in-3.15.rst:86
168181
msgid ""
169182
"The :meth:`~wave.Wave_read.getmark`, :meth:`!setmark`, and :meth:`~wave."
170183
"Wave_read.getmarkers` methods of the :class:`~wave.Wave_read` and :class:"

library/cmath.po

+43-32
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.13\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2024-09-03 11:11+0800\n"
10+
"POT-Creation-Date: 2024-11-05 00:13+0000\n"
1111
"PO-Revision-Date: 2024-03-14 09:26+0800\n"
1212
"Last-Translator: Enkai Huang <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -309,42 +309,39 @@ msgid ""
309309
msgstr "如果 *a* 和 *b* 的值相互接近,則回傳 ``True``,否則回傳 ``False``。"
310310

311311
#: ../../library/cmath.rst:223
312+
#, fuzzy
312313
msgid ""
313314
"Whether or not two values are considered close is determined according to "
314-
"given absolute and relative tolerances."
315+
"given absolute and relative tolerances. If no errors occur, the result will "
316+
"be: ``abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), abs_tol)``."
315317
msgstr ""
316318
"兩個值是否被認為相互接近是由給定的絕對和相對容許偏差 (tolerance) 所決定的。"
317319

318-
#: ../../library/cmath.rst:226
320+
#: ../../library/cmath.rst:227
321+
#, fuzzy
319322
msgid ""
320323
"*rel_tol* is the relative tolerance -- it is the maximum allowed difference "
321324
"between *a* and *b*, relative to the larger absolute value of *a* or *b*. "
322325
"For example, to set a tolerance of 5%, pass ``rel_tol=0.05``. The default "
323326
"tolerance is ``1e-09``, which assures that the two values are the same "
324-
"within about 9 decimal digits. *rel_tol* must be greater than zero."
327+
"within about 9 decimal digits. *rel_tol* must be nonnegative and less than "
328+
"``1.0``."
325329
msgstr ""
326330
"*rel_tol* 是相對容許偏差 -- 它是 *a* 和 *b* 之間的最大容許偏差值,相對於 *a* "
327331
"或 *b* 的較大絕對值。例如,要設定 5% 的容許偏差,請傳遞 ``rel_tol=0.05``。預"
328332
"設容許偏差是 ``1e-09``,它確保兩個值在大約 9 位十進制數字內相同。 *rel_tol* "
329333
"必須大於零。"
330334

331-
#: ../../library/cmath.rst:232
335+
#: ../../library/cmath.rst:234
332336
msgid ""
333-
"*abs_tol* is the minimum absolute tolerance -- useful for comparisons near "
334-
"zero. *abs_tol* must be at least zero."
337+
"*abs_tol* is the absolute tolerance; it defaults to ``0.0`` and it must be "
338+
"nonnegative. When comparing ``x`` to ``0.0``, ``isclose(x, 0)`` is computed "
339+
"as ``abs(x) <= rel_tol * abs(x)``, which is ``False`` for any ``x`` and "
340+
"rel_tol less than ``1.0``. So add an appropriate positive abs_tol argument "
341+
"to the call."
335342
msgstr ""
336-
"*abs_tol* 是最小絕對容許偏差 -- 對於接近零的比較很有用。 *abs_tol* 必須至少為"
337-
"零。"
338343

339-
#: ../../library/cmath.rst:235
340-
msgid ""
341-
"If no errors occur, the result will be: ``abs(a-b) <= max(rel_tol * "
342-
"max(abs(a), abs(b)), abs_tol)``."
343-
msgstr ""
344-
"如果未發生錯誤,結果將為: ``abs(a-b) <= max(rel_tol * max(abs(a), abs(b)), "
345-
"abs_tol)``。"
346-
347-
#: ../../library/cmath.rst:238
344+
#: ../../library/cmath.rst:240
348345
msgid ""
349346
"The IEEE 754 special values of ``NaN``, ``inf``, and ``-inf`` will be "
350347
"handled according to IEEE rules. Specifically, ``NaN`` is not considered "
@@ -355,49 +352,49 @@ msgstr ""
355352
"體來說, ``NaN`` 不被認為接近任何其他值,包括 ``NaN``。 ``inf`` 和 ``-inf`` "
356353
"只被認為是接近它們自己的。"
357354

358-
#: ../../library/cmath.rst:247
355+
#: ../../library/cmath.rst:249
359356
msgid ":pep:`485` -- A function for testing approximate equality"
360357
msgstr ":pep:`485` -- 一個用來測試近似相等的函式"
361358

362-
#: ../../library/cmath.rst:251
359+
#: ../../library/cmath.rst:253
363360
msgid "Constants"
364361
msgstr "常數"
365362

366-
#: ../../library/cmath.rst:255
363+
#: ../../library/cmath.rst:257
367364
msgid "The mathematical constant *π*, as a float."
368365
msgstr "數學常數 *π*,作為一個浮點數。"
369366

370-
#: ../../library/cmath.rst:260
367+
#: ../../library/cmath.rst:262
371368
msgid "The mathematical constant *e*, as a float."
372369
msgstr "數學常數 *e*,作為一個浮點數。"
373370

374-
#: ../../library/cmath.rst:265
371+
#: ../../library/cmath.rst:267
375372
msgid "The mathematical constant *τ*, as a float."
376373
msgstr "數學常數 *τ*,作為一個浮點數。"
377374

378-
#: ../../library/cmath.rst:272
375+
#: ../../library/cmath.rst:274
379376
msgid "Floating-point positive infinity. Equivalent to ``float('inf')``."
380377
msgstr "正無窮大的浮點數。相當於 ``float('inf')``。"
381378

382-
#: ../../library/cmath.rst:279
379+
#: ../../library/cmath.rst:281
383380
msgid ""
384381
"Complex number with zero real part and positive infinity imaginary part. "
385382
"Equivalent to ``complex(0.0, float('inf'))``."
386383
msgstr "實部為零和虛部為正無窮的複數。相當於 ``complex(0.0, float('inf'))``。"
387384

388-
#: ../../library/cmath.rst:287
385+
#: ../../library/cmath.rst:289
389386
msgid ""
390387
"A floating-point \"not a number\" (NaN) value. Equivalent to "
391388
"``float('nan')``."
392389
msgstr "浮點「非數字」 (NaN) 值。相當於 ``float('nan')``。"
393390

394-
#: ../../library/cmath.rst:295
391+
#: ../../library/cmath.rst:297
395392
msgid ""
396393
"Complex number with zero real part and NaN imaginary part. Equivalent to "
397394
"``complex(0.0, float('nan'))``."
398395
msgstr "實部為零和虛部為 NaN 的複數。相當於 ``complex(0.0, float('nan'))``。"
399396

400-
#: ../../library/cmath.rst:303
397+
#: ../../library/cmath.rst:305
401398
msgid ""
402399
"Note that the selection of functions is similar, but not identical, to that "
403400
"in module :mod:`math`. The reason for having two modules is that some users "
@@ -413,7 +410,7 @@ msgstr ""
413410
"sqrt(-1)`` 引發異常,也不願它回傳複數。另請注意, :mod:`cmath` 中所定義的函式"
414411
"始終都會回傳複數,即使答案可以表示為實數(在這種情況下,複數的虛部為零)。"
415412

416-
#: ../../library/cmath.rst:311
413+
#: ../../library/cmath.rst:313
417414
msgid ""
418415
"A note on branch cuts: They are curves along which the given function fails "
419416
"to be continuous. They are a necessary feature of many complex functions. "
@@ -428,17 +425,31 @@ msgstr ""
428425
"所有關於複變函數的(不是太初級的)書籍以獲得啟發。對於如何正確地基於數值目的"
429426
"選擇分枝切割的相關訊息,以下內容應該是一個很好的參考:"
430427

431-
#: ../../library/cmath.rst:321
428+
#: ../../library/cmath.rst:323
432429
msgid ""
433430
"Kahan, W: Branch cuts for complex elementary functions; or, Much ado about "
434431
"nothing's sign bit. In Iserles, A., and Powell, M. (eds.), The state of the "
435432
"art in numerical analysis. Clarendon Press (1987) pp165--211."
436433
msgstr ""
437434

438-
#: ../../library/cmath.rst:301
435+
#: ../../library/cmath.rst:303
439436
msgid "module"
440437
msgstr "module(模組)"
441438

442-
#: ../../library/cmath.rst:301
439+
#: ../../library/cmath.rst:303
443440
msgid "math"
444441
msgstr "math(數學)"
442+
443+
#~ msgid ""
444+
#~ "*abs_tol* is the minimum absolute tolerance -- useful for comparisons "
445+
#~ "near zero. *abs_tol* must be at least zero."
446+
#~ msgstr ""
447+
#~ "*abs_tol* 是最小絕對容許偏差 -- 對於接近零的比較很有用。 *abs_tol* 必須至"
448+
#~ "少為零。"
449+
450+
#~ msgid ""
451+
#~ "If no errors occur, the result will be: ``abs(a-b) <= max(rel_tol * "
452+
#~ "max(abs(a), abs(b)), abs_tol)``."
453+
#~ msgstr ""
454+
#~ "如果未發生錯誤,結果將為: ``abs(a-b) <= max(rel_tol * max(abs(a), "
455+
#~ "abs(b)), abs_tol)``。"

library/dis.po

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.13\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2024-10-09 00:13+0000\n"
10+
"POT-Creation-Date: 2024-11-05 00:13+0000\n"
1111
"PO-Revision-Date: 2018-07-27 16:55+0800\n"
1212
"Last-Translator: Adrian Liaw <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -1709,7 +1709,7 @@ msgstr ""
17091709
#: ../../library/dis.rst:1553
17101710
msgid ""
17111711
"Pushes a new function object on the stack built from the code object at "
1712-
"``STACK[1]``."
1712+
"``STACK[-1]``."
17131713
msgstr ""
17141714

17151715
#: ../../library/dis.rst:1555

0 commit comments

Comments
 (0)