Skip to content

Commit a2c72e7

Browse files
sync with cpython 9473ae9b
1 parent 29b88a9 commit a2c72e7

File tree

6 files changed

+354
-300
lines changed

6 files changed

+354
-300
lines changed

deprecations/index.po

+84-74
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-05 00:13+0000\n"
9+
"POT-Creation-Date: 2024-11-10 17:21+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"
@@ -25,22 +25,6 @@ msgid "Pending Removal in Python 3.14"
2525
msgstr "Python 3.14 中待移除的項目"
2626

2727
#: ../../deprecations/pending-removal-in-3.14.rst:4
28-
#: ../../deprecations/pending-removal-in-3.15.rst:4
29-
msgid "The import system:"
30-
msgstr "引入系統 (import system):"
31-
32-
#: ../../deprecations/pending-removal-in-3.14.rst:6
33-
msgid ""
34-
"Setting :attr:`~module.__loader__` on a module while failing to set :attr:"
35-
"`__spec__.loader <importlib.machinery.ModuleSpec.loader>` is deprecated. In "
36-
"Python 3.14, :attr:`!__loader__` will cease to be set or taken into "
37-
"consideration by the import system or the standard library."
38-
msgstr ""
39-
"在模組上設定 :attr:`~module.__loader__` 而沒有設定 :attr:`__spec__.loader "
40-
"<importlib.machinery.ModuleSpec.loader>` 的做法已被棄用。在 Python 3.14 中,"
41-
"引入系統或標準函式庫將不再設定或考慮 :attr:`!__loader__` 。"
42-
43-
#: ../../deprecations/pending-removal-in-3.14.rst:11
4428
msgid ""
4529
":mod:`argparse`: The *type*, *choices*, and *metavar* parameters of :class:`!"
4630
"argparse.BooleanOptionalAction` are deprecated and will be removed in 3.14. "
@@ -50,7 +34,7 @@ msgstr ""
5034
"*choices* 和 *metavar* 參數已被棄用,將在 3.14 中移除。 (由 Nikita Sobolev "
5135
"於 :gh:`92248` 貢獻。)"
5236

53-
#: ../../deprecations/pending-removal-in-3.14.rst:16
37+
#: ../../deprecations/pending-removal-in-3.14.rst:9
5438
msgid ""
5539
":mod:`ast`: The following features have been deprecated in documentation "
5640
"since Python 3.8, now cause a :exc:`DeprecationWarning` to be emitted at "
@@ -59,38 +43,39 @@ msgstr ""
5943
":mod:`ast`:自 Python 3.8 起,下列功能已在文件中被棄用,現在在存取或使用時會"
6044
"於 runtime 發出 :exc:`DeprecationWarning`,並將在 Python 3.14 中移除:"
6145

62-
#: ../../deprecations/pending-removal-in-3.14.rst:20
46+
#: ../../deprecations/pending-removal-in-3.14.rst:13
6347
msgid ":class:`!ast.Num`"
6448
msgstr ":class:`!ast.Num`"
6549

66-
#: ../../deprecations/pending-removal-in-3.14.rst:21
50+
#: ../../deprecations/pending-removal-in-3.14.rst:14
6751
msgid ":class:`!ast.Str`"
6852
msgstr ":class:`!ast.Str`"
6953

70-
#: ../../deprecations/pending-removal-in-3.14.rst:22
54+
#: ../../deprecations/pending-removal-in-3.14.rst:15
7155
msgid ":class:`!ast.Bytes`"
7256
msgstr ":class:`!ast.Bytes`"
7357

74-
#: ../../deprecations/pending-removal-in-3.14.rst:23
58+
#: ../../deprecations/pending-removal-in-3.14.rst:16
7559
msgid ":class:`!ast.NameConstant`"
7660
msgstr ":class:`!ast.NameConstant`"
7761

78-
#: ../../deprecations/pending-removal-in-3.14.rst:24
62+
#: ../../deprecations/pending-removal-in-3.14.rst:17
7963
msgid ":class:`!ast.Ellipsis`"
8064
msgstr ":class:`!ast.Ellipsis`"
8165

82-
#: ../../deprecations/pending-removal-in-3.14.rst:26
66+
#: ../../deprecations/pending-removal-in-3.14.rst:19
8367
msgid ""
8468
"Use :class:`ast.Constant` instead. (Contributed by Serhiy Storchaka in :gh:"
8569
"`90953`.)"
8670
msgstr ""
8771
"請改用 :class:`ast.Constant`。(由 Serhiy Storchaka 於 :gh:`90953` 貢獻。)"
8872

89-
#: ../../deprecations/pending-removal-in-3.14.rst:29
73+
#: ../../deprecations/pending-removal-in-3.14.rst:22
74+
#: ../../deprecations/pending-removal-in-3.16.rst:19
9075
msgid ":mod:`asyncio`:"
9176
msgstr ":mod:`asyncio`:"
9277

93-
#: ../../deprecations/pending-removal-in-3.14.rst:31
78+
#: ../../deprecations/pending-removal-in-3.14.rst:24
9479
msgid ""
9580
"The child watcher classes :class:`~asyncio.MultiLoopChildWatcher`, :class:"
9681
"`~asyncio.FastChildWatcher`, :class:`~asyncio.AbstractChildWatcher` and :"
@@ -102,7 +87,7 @@ msgstr ""
10287
"AbstractChildWatcher` 和 :class:`~asyncio.SafeChildWatcher`。 (由 Kumar "
10388
"Aditya 於 :gh:`94597` 貢獻。)"
10489

105-
#: ../../deprecations/pending-removal-in-3.14.rst:37
90+
#: ../../deprecations/pending-removal-in-3.14.rst:30
10691
msgid ""
10792
":func:`asyncio.set_child_watcher`, :func:`asyncio.get_child_watcher`, :meth:"
10893
"`asyncio.AbstractEventLoopPolicy.set_child_watcher` and :meth:`asyncio."
@@ -114,7 +99,7 @@ msgstr ""
11499
"AbstractEventLoopPolicy.get_child_watcher` 已被棄用並將在 Python 3.14 中移"
115100
"除。(由 Kumar Aditya 於 :gh:`94597` 貢獻。)"
116101

117-
#: ../../deprecations/pending-removal-in-3.14.rst:43
102+
#: ../../deprecations/pending-removal-in-3.14.rst:36
118103
msgid ""
119104
"The :meth:`~asyncio.get_event_loop` method of the default event loop policy "
120105
"now emits a :exc:`DeprecationWarning` if there is no current event loop set "
@@ -125,7 +110,7 @@ msgstr ""
125110
"件迴圈且決定建立一個時發出 :exc:`DeprecationWarning`。 (由 Serhiy Storchaka "
126111
"和 Guido van Rossum 於 :gh:`100160` 貢獻。)"
127112

128-
#: ../../deprecations/pending-removal-in-3.14.rst:48
113+
#: ../../deprecations/pending-removal-in-3.14.rst:41
129114
msgid ""
130115
":mod:`collections.abc`: Deprecated :class:`~collections.abc.ByteString`. "
131116
"Prefer :class:`!Sequence` or :class:`~collections.abc.Buffer`. For use in "
@@ -137,47 +122,47 @@ msgstr ""
137122
"改用聯集,如 ``bytes | bytearray``,或 :class:`collections.abc.Buffer`。(由 "
138123
"Shantanu Jain 於 :gh:`91896` 貢獻。)"
139124

140-
#: ../../deprecations/pending-removal-in-3.14.rst:54
125+
#: ../../deprecations/pending-removal-in-3.14.rst:47
141126
msgid ""
142127
":mod:`email`: Deprecated the *isdst* parameter in :func:`email.utils."
143128
"localtime`. (Contributed by Alan Williams in :gh:`72346`.)"
144129
msgstr ""
145130
":mod:`email`:已棄用 :func:`email.utils.localtime` 中的 *isdst* 參數。(由 "
146131
"Alan Williams 於 :gh:`72346` 貢獻。)"
147132

148-
#: ../../deprecations/pending-removal-in-3.14.rst:57
133+
#: ../../deprecations/pending-removal-in-3.14.rst:50
149134
msgid ":mod:`importlib.abc` deprecated classes:"
150135
msgstr ":mod:`importlib.abc` 的已棄用類別:"
151136

152-
#: ../../deprecations/pending-removal-in-3.14.rst:59
137+
#: ../../deprecations/pending-removal-in-3.14.rst:52
153138
msgid ":class:`!importlib.abc.ResourceReader`"
154139
msgstr ":class:`!importlib.abc.ResourceReader`"
155140

156-
#: ../../deprecations/pending-removal-in-3.14.rst:60
141+
#: ../../deprecations/pending-removal-in-3.14.rst:53
157142
msgid ":class:`!importlib.abc.Traversable`"
158143
msgstr ":class:`!importlib.abc.Traversable`"
159144

160-
#: ../../deprecations/pending-removal-in-3.14.rst:61
145+
#: ../../deprecations/pending-removal-in-3.14.rst:54
161146
msgid ":class:`!importlib.abc.TraversableResources`"
162147
msgstr ":class:`!importlib.abc.TraversableResources`"
163148

164-
#: ../../deprecations/pending-removal-in-3.14.rst:63
149+
#: ../../deprecations/pending-removal-in-3.14.rst:56
165150
msgid "Use :mod:`importlib.resources.abc` classes instead:"
166151
msgstr "請改用 :mod:`importlib.resources.abc` 類別:"
167152

168-
#: ../../deprecations/pending-removal-in-3.14.rst:65
153+
#: ../../deprecations/pending-removal-in-3.14.rst:58
169154
msgid ":class:`importlib.resources.abc.Traversable`"
170155
msgstr ":class:`importlib.resources.abc.Traversable`"
171156

172-
#: ../../deprecations/pending-removal-in-3.14.rst:66
157+
#: ../../deprecations/pending-removal-in-3.14.rst:59
173158
msgid ":class:`importlib.resources.abc.TraversableResources`"
174159
msgstr ":class:`importlib.resources.abc.TraversableResources`"
175160

176-
#: ../../deprecations/pending-removal-in-3.14.rst:68
161+
#: ../../deprecations/pending-removal-in-3.14.rst:61
177162
msgid "(Contributed by Jason R. Coombs and Hugo van Kemenade in :gh:`93963`.)"
178163
msgstr "(由 Jason R. Coombs 和 Hugo van Kemenade 貢獻於 :gh:`93963`。)"
179164

180-
#: ../../deprecations/pending-removal-in-3.14.rst:70
165+
#: ../../deprecations/pending-removal-in-3.14.rst:63
181166
msgid ""
182167
":mod:`itertools` had undocumented, inefficient, historically buggy, and "
183168
"inconsistent support for copy, deepcopy, and pickle operations. This will be "
@@ -188,7 +173,7 @@ msgstr ""
188173
"deepcopy 和 pickle 操作支援。將在 3.14 中移除以大幅減少程式碼量和維護負擔。 "
189174
"(由 Raymond Hettinger 於 :gh:`101588` 貢獻。)"
190175

191-
#: ../../deprecations/pending-removal-in-3.14.rst:76
176+
#: ../../deprecations/pending-removal-in-3.14.rst:69
192177
msgid ""
193178
":mod:`multiprocessing`: The default start method will change to a safer one "
194179
"on Linux, BSDs, and other non-macOS POSIX platforms where ``'fork'`` is "
@@ -205,15 +190,15 @@ msgstr ""
205190
"API 來明確指定你的程式碼何時\\ *需要* ``'fork'``。請參閱 :ref:"
206191
"`multiprocessing-start-methods`。"
207192

208-
#: ../../deprecations/pending-removal-in-3.14.rst:84
193+
#: ../../deprecations/pending-removal-in-3.14.rst:77
209194
msgid ""
210195
":mod:`pathlib`: :meth:`~pathlib.PurePath.is_relative_to` and :meth:`~pathlib."
211196
"PurePath.relative_to`: passing additional arguments is deprecated."
212197
msgstr ""
213198
":mod:`pathlib`:已棄用 :meth:`~pathlib.PurePath.is_relative_to` 和 :meth:"
214199
"`~pathlib.PurePath.relative_to`:額外引數的傳遞已被棄用。"
215200

216-
#: ../../deprecations/pending-removal-in-3.14.rst:88
201+
#: ../../deprecations/pending-removal-in-3.14.rst:81
217202
msgid ""
218203
":mod:`pkgutil`: :func:`~pkgutil.find_loader` and :func:`~pkgutil.get_loader` "
219204
"now raise :exc:`DeprecationWarning`; use :func:`importlib.util.find_spec` "
@@ -223,27 +208,27 @@ msgstr ""
223208
"現在會引發 :exc:`DeprecationWarning`;請改用 :func:`importlib.util."
224209
"find_spec`。 (由 Nikita Sobolev 於 :gh:`97850` 貢獻。)"
225210

226-
#: ../../deprecations/pending-removal-in-3.14.rst:93
211+
#: ../../deprecations/pending-removal-in-3.14.rst:86
227212
msgid ":mod:`pty`:"
228213
msgstr ":mod:`pty`:"
229214

230-
#: ../../deprecations/pending-removal-in-3.14.rst:95
215+
#: ../../deprecations/pending-removal-in-3.14.rst:88
231216
msgid "``master_open()``: use :func:`pty.openpty`."
232217
msgstr "``master_open()``:請用 :func:`pty.openpty`。"
233218

234-
#: ../../deprecations/pending-removal-in-3.14.rst:96
219+
#: ../../deprecations/pending-removal-in-3.14.rst:89
235220
msgid "``slave_open()``: use :func:`pty.openpty`."
236221
msgstr "``slave_open()``:請用 :func:`pty.openpty`。"
237222

238-
#: ../../deprecations/pending-removal-in-3.14.rst:98
223+
#: ../../deprecations/pending-removal-in-3.14.rst:91
239224
msgid ":mod:`sqlite3`:"
240225
msgstr ":mod:`sqlite3`:"
241226

242-
#: ../../deprecations/pending-removal-in-3.14.rst:100
227+
#: ../../deprecations/pending-removal-in-3.14.rst:93
243228
msgid ":data:`~sqlite3.version` and :data:`~sqlite3.version_info`."
244229
msgstr ":data:`~sqlite3.version` 和 :data:`~sqlite3.version_info`。"
245230

246-
#: ../../deprecations/pending-removal-in-3.14.rst:102
231+
#: ../../deprecations/pending-removal-in-3.14.rst:95
247232
msgid ""
248233
":meth:`~sqlite3.Cursor.execute` and :meth:`~sqlite3.Cursor.executemany` if :"
249234
"ref:`named placeholders <sqlite3-placeholders>` are used and *parameters* is "
@@ -253,15 +238,15 @@ msgstr ""
253238
"使用 :ref:`named placeholders <sqlite3-placeholders>` 且 *parameters* 是序列"
254239
"而不是 :class:`dict`。"
255240

256-
#: ../../deprecations/pending-removal-in-3.14.rst:106
241+
#: ../../deprecations/pending-removal-in-3.14.rst:99
257242
msgid ""
258243
":mod:`typing`: :class:`~typing.ByteString`, deprecated since Python 3.9, now "
259244
"causes a :exc:`DeprecationWarning` to be emitted when it is used."
260245
msgstr ""
261246
":mod:`typing`:自 Python 3.9 起已被棄用的 :class:`~typing.ByteString` 現在在"
262247
"使用時會發出 :exc:`DeprecationWarning`。"
263248

264-
#: ../../deprecations/pending-removal-in-3.14.rst:109
249+
#: ../../deprecations/pending-removal-in-3.14.rst:102
265250
msgid ""
266251
":mod:`urllib`: :class:`!urllib.parse.Quoter` is deprecated: it was not "
267252
"intended to be a public API. (Contributed by Gregory P. Smith in :gh:"
@@ -275,6 +260,11 @@ msgstr ""
275260
msgid "Pending Removal in Python 3.15"
276261
msgstr "Python 3.15 中待移除的項目"
277262

263+
#: ../../deprecations/pending-removal-in-3.15.rst:4
264+
#: ../../deprecations/pending-removal-in-3.16.rst:4
265+
msgid "The import system:"
266+
msgstr "引入系統 (import system):"
267+
278268
#: ../../deprecations/pending-removal-in-3.15.rst:6
279269
msgid ""
280270
"Setting :attr:`~module.__cached__` on a module while failing to set :attr:"
@@ -443,32 +433,27 @@ msgstr ""
443433
"getmarkers` 方法自 Python 3.13 被棄用。"
444434

445435
#: ../../deprecations/pending-removal-in-3.16.rst:2
446-
msgid "Pending Removal in Python 3.16"
436+
#, fuzzy
437+
msgid "Pending removal in Python 3.16"
447438
msgstr "Python 3.16 中待移除的項目"
448439

449-
#: ../../deprecations/pending-removal-in-3.16.rst:4
450-
#: ../../deprecations/pending-removal-in-future.rst:12
451-
msgid ":mod:`builtins`:"
452-
msgstr ":mod:`builtins`:"
453-
454440
#: ../../deprecations/pending-removal-in-3.16.rst:6
441+
#, fuzzy
455442
msgid ""
456-
"Bitwise inversion on boolean types, ``~True`` or ``~False`` has been "
457-
"deprecated since Python 3.12, as it produces surprising and unintuitive "
458-
"results (``-2`` and ``-1``). Use ``not x`` instead for the logical negation "
459-
"of a Boolean. In the rare case that you need the bitwise inversion of the "
460-
"underlying integer, convert to ``int`` explicitly (``~int(x)``)."
443+
"Setting :attr:`~module.__loader__` on a module while failing to set :attr:"
444+
"`__spec__.loader <importlib.machinery.ModuleSpec.loader>` is deprecated. In "
445+
"Python 3.16, :attr:`!__loader__` will cease to be set or taken into "
446+
"consideration by the import system or the standard library."
461447
msgstr ""
462-
"自 Python 3.12 起,布林型別的位元反轉 ``~True`` 或 ``~False`` 已被棄用,因為"
463-
"它會產生不預期且不直觀的結果(``-2`` 和 ``-1``)。使用 ``not x`` 代替布林值的"
464-
"邏輯否定。在極少數情況下,你需要對底層的整數進行位元反轉,請明確轉換為 "
465-
"``~int(x)`` (``~int(x)``)。"
448+
"在模組上設定 :attr:`~module.__loader__` 而沒有設定 :attr:`__spec__.loader "
449+
"<importlib.machinery.ModuleSpec.loader>` 的做法已被棄用。在 Python 3.14 中,"
450+
"引入系統或標準函式庫將不再設定或考慮 :attr:`!__loader__` 。"
466451

467-
#: ../../deprecations/pending-removal-in-3.16.rst:13
452+
#: ../../deprecations/pending-removal-in-3.16.rst:11
468453
msgid ":mod:`array`:"
469454
msgstr ":mod:`array`:"
470455

471-
#: ../../deprecations/pending-removal-in-3.16.rst:15
456+
#: ../../deprecations/pending-removal-in-3.16.rst:13
472457
msgid ""
473458
"The ``'u'`` format code (:c:type:`wchar_t`) has been deprecated in "
474459
"documentation since Python 3.3 and at runtime since Python 3.13. Use the "
@@ -479,10 +464,35 @@ msgstr ""
479464
"來取代 Unicode 字元。"
480465

481466
#: ../../deprecations/pending-removal-in-3.16.rst:21
467+
msgid ""
468+
":func:`!asyncio.iscoroutinefunction` is deprecated and will be removed in "
469+
"Python 3.16, use :func:`inspect.iscoroutinefunction` instead. (Contributed "
470+
"by Jiahao Li and Kumar Aditya in :gh:`122875`.)"
471+
msgstr ""
472+
473+
#: ../../deprecations/pending-removal-in-3.16.rst:26
474+
#: ../../deprecations/pending-removal-in-future.rst:12
475+
msgid ":mod:`builtins`:"
476+
msgstr ":mod:`builtins`:"
477+
478+
#: ../../deprecations/pending-removal-in-3.16.rst:28
479+
msgid ""
480+
"Bitwise inversion on boolean types, ``~True`` or ``~False`` has been "
481+
"deprecated since Python 3.12, as it produces surprising and unintuitive "
482+
"results (``-2`` and ``-1``). Use ``not x`` instead for the logical negation "
483+
"of a Boolean. In the rare case that you need the bitwise inversion of the "
484+
"underlying integer, convert to ``int`` explicitly (``~int(x)``)."
485+
msgstr ""
486+
"自 Python 3.12 起,布林型別的位元反轉 ``~True`` 或 ``~False`` 已被棄用,因為"
487+
"它會產生不預期且不直觀的結果(``-2`` 和 ``-1``)。使用 ``not x`` 代替布林值的"
488+
"邏輯否定。在極少數情況下,你需要對底層的整數進行位元反轉,請明確轉換為 "
489+
"``~int(x)`` (``~int(x)``)。"
490+
491+
#: ../../deprecations/pending-removal-in-3.16.rst:35
482492
msgid ":mod:`shutil`:"
483493
msgstr ":mod:`shutil`:"
484494

485-
#: ../../deprecations/pending-removal-in-3.16.rst:23
495+
#: ../../deprecations/pending-removal-in-3.16.rst:37
486496
msgid ""
487497
"The :class:`!ExecError` exception has been deprecated since Python 3.14. It "
488498
"has not been used by any function in :mod:`!shutil` since Python 3.4, and is "
@@ -491,23 +501,23 @@ msgstr ""
491501
"自 Python 3.14 起,:class:`!ExecError` 例外已被棄用。自 Python 3.4 以來,它尚"
492502
"未被 :mod:`!shutil` 中的任何函式使用,現在是 :exc:`RuntimeError` 的別名。"
493503

494-
#: ../../deprecations/pending-removal-in-3.16.rst:28
504+
#: ../../deprecations/pending-removal-in-3.16.rst:42
495505
msgid ":mod:`symtable`:"
496506
msgstr ":mod:`symtable`:"
497507

498-
#: ../../deprecations/pending-removal-in-3.16.rst:30
508+
#: ../../deprecations/pending-removal-in-3.16.rst:44
499509
msgid ""
500510
"The :meth:`Class.get_methods <symtable.Class.get_methods>` method has been "
501511
"deprecated since Python 3.14."
502512
msgstr ""
503513
"自 Python 3.14 起,:meth:`Class.get_methods <symtable.Class.get_methods>` 方"
504514
"法已被棄用。"
505515

506-
#: ../../deprecations/pending-removal-in-3.16.rst:33
516+
#: ../../deprecations/pending-removal-in-3.16.rst:47
507517
msgid ":mod:`sys`:"
508518
msgstr ":mod:`sys`:"
509519

510-
#: ../../deprecations/pending-removal-in-3.16.rst:35
520+
#: ../../deprecations/pending-removal-in-3.16.rst:49
511521
msgid ""
512522
"The :func:`~sys._enablelegacywindowsfsencoding` function has been deprecated "
513523
"since Python 3.13. Use the :envvar:`PYTHONLEGACYWINDOWSFSENCODING` "
@@ -516,11 +526,11 @@ msgstr ""
516526
"自 Python 3.13 起,:func:`~sys._enablelegacywindowsfsencoding` 函式已被棄用。"
517527
"請改用 :envvar:`PYTHONLEGACYWINDOWSFSENCODING` 環境變數。"
518528

519-
#: ../../deprecations/pending-removal-in-3.16.rst:39
529+
#: ../../deprecations/pending-removal-in-3.16.rst:53
520530
msgid ":mod:`tarfile`:"
521531
msgstr ":mod:`tarfile`:"
522532

523-
#: ../../deprecations/pending-removal-in-3.16.rst:41
533+
#: ../../deprecations/pending-removal-in-3.16.rst:55
524534
msgid ""
525535
"The undocumented and unused :attr:`!TarFile.tarfile` attribute has been "
526536
"deprecated since Python 3.13."

0 commit comments

Comments
 (0)