Skip to content

Commit 5f68e0c

Browse files
sync with cpython 951bb2ab
1 parent 77a2d81 commit 5f68e0c

File tree

10 files changed

+2562
-2419
lines changed

10 files changed

+2562
-2419
lines changed

deprecations/index.po

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgid ""
55
msgstr ""
66
"Project-Id-Version: Python 3.14\n"
77
"Report-Msgid-Bugs-To: \n"
8-
"POT-Creation-Date: 2025-10-06 00:15+0000\n"
8+
"POT-Creation-Date: 2026-01-07 00:14+0000\n"
99
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1010
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1111
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -494,10 +494,10 @@ msgid ""
494494
"that explicitly specifies the types your code supports (e.g., ``bytes | "
495495
"bytearray | memoryview``)."
496496
msgstr ""
497-
"使用 ``isinstance(obj, collections.abc.Buffer)`` 來測試 ``obj`` 是否在 runtime "
498-
"實作了\\ :ref:`緩衝區協定 <bufferobjects>`。在型別註解的使用中,請用 :class:`~"
499-
"collections.abc.Buffer` 或明確指定你的程式碼所支援型別的聯集(例如 "
500-
"``bytes | bytearray | memoryview``)。"
497+
"使用 ``isinstance(obj, collections.abc.Buffer)`` 來測試 ``obj`` 是否在 "
498+
"runtime 實作了\\ :ref:`緩衝區協定 <bufferobjects>`。在型別註解的使用中,"
499+
"用 :class:`~collections.abc.Buffer` 或明確指定你的程式碼所支援型別的聯集("
500+
"``bytes | bytearray | memoryview``)。"
501501

502502
#: ../../deprecations/pending-removal-in-3.17.rst:14
503503
#: ../../deprecations/pending-removal-in-3.17.rst:42
@@ -510,18 +510,20 @@ msgid ""
510510
"also never understood as subtypes of :class:`!ByteString` (either at runtime "
511511
"or by static type checkers)."
512512
msgstr ""
513-
":class:`!ByteString` 最初被設計為一個抽象類別,以作為 :class:`bytes` 和 :class:`bytearray` "
514-
"的超型別 (supertype)。然而由於 ABC 從未擁有任何方法,知道一個物件是 :class:`!ByteString` 的"
515-
"實例從未真正告訴你任何關於該物件的有用資訊。其他常見的緩衝區型別如 :class:`memoryview` "
516-
"也從未被理解為 :class:`!ByteString` 的子型別(無論是在 runtime 還是由靜態型別檢查器)。"
513+
":class:`!ByteString` 最初被設計為一個抽象類別,以作為 :class:`bytes` 和 :"
514+
"class:`bytearray` 的超型別 (supertype)。然而由於 ABC 從未擁有任何方法,知道一"
515+
"個物件是 :class:`!ByteString` 的實例從未真正告訴你任何關於該物件的有用資訊。"
516+
"其他常見的緩衝區型別如 :class:`memoryview` 也從未被理解為 :class:`!"
517+
"ByteString` 的子型別(無論是在 runtime 還是由靜態型別檢查器)。"
517518

518519
#: ../../deprecations/pending-removal-in-3.17.rst:22
519520
#: ../../deprecations/pending-removal-in-3.17.rst:50
520521
msgid ""
521522
"See :pep:`PEP 688 <688#current-options>` for more details. (Contributed by "
522523
"Shantanu Jain in :gh:`91896`.)"
523524
msgstr ""
524-
"更多細節請見 :pep:`PEP 688 <688#current-options>`。(由 Shantanu Jain 於 :gh:`91896` 貢獻。)"
525+
"更多細節請見 :pep:`PEP 688 <688#current-options>`。(由 Shantanu Jain 於 :gh:"
526+
"`91896` 貢獻。)"
525527

526528
#: ../../deprecations/pending-removal-in-3.17.rst:28
527529
msgid ""
@@ -542,7 +544,26 @@ msgid ""
542544
":class:`typing.ByteString`, deprecated since Python 3.9, is scheduled for "
543545
"removal in Python 3.17."
544546
msgstr ""
545-
":class:`typing.ByteString` 自 Python 3.9 起已被棄用,預計在 Python 3.17 中移除。"
547+
":class:`typing.ByteString` 自 Python 3.9 起已被棄用,預計在 Python 3.17 中移"
548+
"除。"
549+
550+
#: ../../deprecations/c-api-pending-removal-in-3.18.rst:2
551+
#: ../../deprecations/pending-removal-in-3.18.rst:2
552+
msgid "Pending removal in Python 3.18"
553+
msgstr "Python 3.18 中待移除的項目"
554+
555+
#: ../../deprecations/pending-removal-in-3.18.rst:4
556+
#, fuzzy
557+
msgid ":mod:`decimal`:"
558+
msgstr ":mod:`datetime`:"
559+
560+
#: ../../deprecations/pending-removal-in-3.18.rst:6
561+
msgid ""
562+
"The non-standard and undocumented :class:`~decimal.Decimal` format specifier "
563+
"``'N'``, which is only supported in the :mod:`!decimal` module's C "
564+
"implementation, has been deprecated since Python 3.13. (Contributed by "
565+
"Serhiy Storchaka in :gh:`89902`.)"
566+
msgstr ""
546567

547568
#: ../../deprecations/pending-removal-in-3.19.rst:2
548569
msgid "Pending removal in Python 3.19"
@@ -974,7 +995,7 @@ msgstr ""
974995
":func:`sys._clear_type_cache` 已被棄用:請改用 :func:`sys."
975996
"_clear_internal_caches`。"
976997

977-
#: ../../deprecations/index.rst:15
998+
#: ../../deprecations/index.rst:17
978999
msgid "C API deprecations"
9791000
msgstr "C API 的棄用項目"
9801001

@@ -1337,10 +1358,6 @@ msgstr ""
13371358
"應改用帶有 :c:type:`PyConfig` 的 :c:func:`Py_InitializeFromConfig` API 來設定"
13381359
"這些選項。或者也可以使用 :c:func:`PyConfig_Get` 在執行時取得這些選項。"
13391360

1340-
#: ../../deprecations/c-api-pending-removal-in-3.18.rst:2
1341-
msgid "Pending removal in Python 3.18"
1342-
msgstr "Python 3.18 中待移除的項目"
1343-
13441361
#: ../../deprecations/c-api-pending-removal-in-3.18.rst:4
13451362
msgid ""
13461363
"The following private functions are deprecated and planned for removal in "
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# SOME DESCRIPTIVE TITLE.
2+
# Copyright (C) 2001 Python Software Foundation
3+
# This file is distributed under the same license as the Python package.
4+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5+
#
6+
#, fuzzy
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Python 3.14\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2026-01-07 00:14+0000\n"
12+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14+
"Language-Team: LANGUAGE <[email protected]>\n"
15+
"Language: zh_TW\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: 8bit\n"
19+
20+
#: ../../deprecations/pending-removal-in-3.18.rst:2
21+
msgid "Pending removal in Python 3.18"
22+
msgstr ""
23+
24+
#: ../../deprecations/pending-removal-in-3.18.rst:4
25+
msgid ":mod:`decimal`:"
26+
msgstr ""
27+
28+
#: ../../deprecations/pending-removal-in-3.18.rst:6
29+
msgid ""
30+
"The non-standard and undocumented :class:`~decimal.Decimal` format specifier "
31+
"``'N'``, which is only supported in the :mod:`!decimal` module's C "
32+
"implementation, has been deprecated since Python 3.13. (Contributed by "
33+
"Serhiy Storchaka in :gh:`89902`.)"
34+
msgstr ""

library/argparse.po

Lines changed: 3 additions & 2 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-12-12 00:15+0000\n"
9+
"POT-Creation-Date: 2026-01-07 00:14+0000\n"
1010
"PO-Revision-Date: 2018-05-23 14:38+0000\n"
1111
"Last-Translator: Adrian Liaw <[email protected]>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -1283,10 +1283,11 @@ msgid ""
12831283
msgstr ""
12841284

12851285
#: ../../library/argparse.rst:741
1286+
#, fuzzy
12861287
msgid ""
12871288
">>> parser = argparse.ArgumentParser(prog='PROG')\n"
12881289
">>> parser.add_argument('--foo-bar')\n"
1289-
">>> parser.parse_args(['--foo-bar', 'FOO-BAR']\n"
1290+
">>> parser.parse_args(['--foo-bar', 'FOO-BAR'])\n"
12901291
"Namespace(foo_bar='FOO-BAR')\n"
12911292
">>> parser.print_help()\n"
12921293
"usage: [-h] [--foo-bar FOO-BAR]\n"

library/email.message.po

Lines changed: 11 additions & 2 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: 2024-09-03 11:11+0800\n"
9+
"POT-Creation-Date: 2026-01-07 00:14+0000\n"
1010
"PO-Revision-Date: 2018-05-23 14:44+0000\n"
1111
"Last-Translator: Adrian Liaw <[email protected]>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -88,7 +88,7 @@ msgid ""
8888
"`~email.policy.default` policy, which follows the rules of the email RFCs "
8989
"except for line endings (instead of the RFC mandated ``\\r\\n``, it uses the "
9090
"Python standard ``\\n`` line endings). For more information see the :mod:"
91-
"`~email.policy` documentation."
91+
"`~email.policy` documentation. [2]_"
9292
msgstr ""
9393

9494
#: ../../library/email.message.rst:64
@@ -911,3 +911,12 @@ msgid ""
911911
"Originally added in 3.4 as a :term:`provisional module <provisional "
912912
"package>`. Docs for legacy message class moved to :ref:`compat32_message`."
913913
msgstr ""
914+
915+
#: ../../library/email.message.rst:753
916+
msgid ""
917+
"The :class:`EmailMessage` class requires a policy that provides a "
918+
"``content_manager`` attribute for content management methods like "
919+
"``set_content()`` and ``get_content()`` to work. The legacy :const:`~email."
920+
"policy.compat32` policy does not support these methods and should not be "
921+
"used with :class:`EmailMessage`."
922+
msgstr ""

library/email.policy.po

Lines changed: 9 additions & 2 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-01-06 00:14+0000\n"
9+
"POT-Creation-Date: 2026-01-07 00:14+0000\n"
1010
"PO-Revision-Date: 2018-05-23 16:01+0000\n"
1111
"Last-Translator: Adrian Liaw <[email protected]>\n"
1212
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -814,10 +814,17 @@ msgid ""
814814
msgstr ""
815815

816816
#: ../../library/email.policy.rst:667
817+
msgid ""
818+
"The :const:`compat32` policy should not be used as a policy for :class:"
819+
"`~email.message.EmailMessage` objects, and should only be used to serialize "
820+
"messages that were created using the :const:`compat32` policy."
821+
msgstr ""
822+
823+
#: ../../library/email.policy.rst:674
817824
msgid "Footnotes"
818825
msgstr "註解"
819826

820-
#: ../../library/email.policy.rst:668
827+
#: ../../library/email.policy.rst:675
821828
msgid ""
822829
"Originally added in 3.3 as a :term:`provisional feature <provisional "
823830
"package>`."

0 commit comments

Comments
 (0)