55msgstr ""
66"Project-Id-Version : Python 3.14\n "
77"Report-Msgid-Bugs-To : \n "
8- "POT-Creation-Date : 2025-09-18 00:15+0000\n "
8+ "POT-Creation-Date : 2025-09-19 00:15+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- "
@@ -181,7 +181,7 @@ msgstr ""
181181"`101866` 貢獻。)"
182182
183183#: ../../deprecations/pending-removal-in-3.15.rst:80
184- #: ../../deprecations/pending-removal-in-3.17.rst:4
184+ #: ../../deprecations/pending-removal-in-3.17.rst:26
185185msgid ":mod:`typing`:"
186186msgstr ":mod:`typing`:"
187187
@@ -476,8 +476,46 @@ msgstr ""
476476msgid "Pending removal in Python 3.17"
477477msgstr "Python 3.17 中待移除的項目"
478478
479+ #: ../../deprecations/pending-removal-in-3.17.rst:4
480+ msgid ":mod:`collections.abc`:"
481+ msgstr ":mod:`collections.abc`:"
482+
479483#: ../../deprecations/pending-removal-in-3.17.rst:6
480484msgid ""
485+ ":class:`collections.abc.ByteString` is scheduled for removal in Python 3.17."
486+ msgstr ""
487+
488+ #: ../../deprecations/pending-removal-in-3.17.rst:8
489+ #: ../../deprecations/pending-removal-in-3.17.rst:36
490+ msgid ""
491+ "Use ``isinstance(obj, collections.abc.Buffer)`` to test if ``obj`` "
492+ "implements the :ref:`buffer protocol <bufferobjects>` at runtime. For use in "
493+ "type annotations, either use :class:`~collections.abc.Buffer` or a union "
494+ "that explicitly specifies the types your code supports (e.g., ``bytes | "
495+ "bytearray | memoryview``)."
496+ msgstr ""
497+
498+ #: ../../deprecations/pending-removal-in-3.17.rst:14
499+ #: ../../deprecations/pending-removal-in-3.17.rst:42
500+ msgid ""
501+ ":class:`!ByteString` was originally intended to be an abstract class that "
502+ "would serve as a supertype of both :class:`bytes` and :class:`bytearray`. "
503+ "However, since the ABC never had any methods, knowing that an object was an "
504+ "instance of :class:`!ByteString` never actually told you anything useful "
505+ "about the object. Other common buffer types such as :class:`memoryview` were "
506+ "also never understood as subtypes of :class:`!ByteString` (either at runtime "
507+ "or by static type checkers)."
508+ msgstr ""
509+
510+ #: ../../deprecations/pending-removal-in-3.17.rst:22
511+ #: ../../deprecations/pending-removal-in-3.17.rst:50
512+ msgid ""
513+ "See :pep:`PEP 688 <688#current-options>` for more details. (Contributed by "
514+ "Shantanu Jain in :gh:`91896`.)"
515+ msgstr ""
516+
517+ #: ../../deprecations/pending-removal-in-3.17.rst:28
518+ msgid ""
481519"Before Python 3.14, old-style unions were implemented using the private "
482520"class ``typing._UnionGenericAlias``. This class is no longer needed for the "
483521"implementation, but it has been retained for backward compatibility, with "
@@ -490,35 +528,11 @@ msgstr ""
490528"除。使用者應該改用文件中記錄的內省輔助函式,例如 :func:`typing.get_origin` "
491529"和 :func:`typing.get_args`,或者依賴私有實作細節。"
492530
493- #: ../../deprecations/pending-removal-in-3.17.rst:11
531+ #: ../../deprecations/pending-removal-in-3.17.rst:33
494532msgid ""
495533":class:`typing.ByteString`, deprecated since Python 3.9, is scheduled for "
496- "removal in Python 3.17. Prefer :class:`~collections.abc.Sequence` or :class:"
497- "`~collections.abc.Buffer`. For use in type annotations, prefer a union, like "
498- "``bytes | bytearray``, or :class:`collections.abc.Buffer`. (Contributed by "
499- "Shantanu Jain in :gh:`91896`.)"
534+ "removal in Python 3.17."
500535msgstr ""
501- "自 Python 3.9 起已被棄用的 :class:`typing.ByteString`,計劃在 Python "
502- "3.17 中移除。建議改用 :class:`~collections.abc.Sequence` 或 :class:`~"
503- "collections.abc.Buffer`。在型別註釋中建議改用聯集,例如 ``bytes | "
504- "bytearray`` 或 :class:`collections.abc.Buffer`。(Shantanu Jain 於 :gh:`91896` 貢獻。)"
505-
506- #: ../../deprecations/pending-removal-in-3.17.rst:17
507- msgid ":mod:`collections.abc`:"
508- msgstr ":mod:`collections.abc`:"
509-
510- #: ../../deprecations/pending-removal-in-3.17.rst:19
511- msgid ""
512- ":class:`collections.abc.ByteString` is scheduled for removal in Python 3.17. "
513- "Prefer :class:`~collections.abc.Sequence` or :class:`~collections.abc."
514- "Buffer`. For use in type annotations, prefer a union, like ``bytes | "
515- "bytearray``, or :class:`collections.abc.Buffer`. (Contributed by Shantanu "
516- "Jain in :gh:`91896`.)"
517- msgstr ""
518- ":class:`collections.abc.ByteString` 計劃在 Python 3.17 中移除。建議改用 "
519- ":class:`~collections.abc.Sequence` 或 :class:`~collections.abc.Buffer`。在"
520- "型別註釋中建議改用聯集,例如 ``bytes | bytearray`` 或 :class:`collections.abc."
521- "Buffer`。(Shantanu Jain 於 :gh:`91896` 貢獻。)"
522536
523537#: ../../deprecations/pending-removal-in-3.19.rst:2
524538msgid "Pending removal in Python 3.19"
@@ -1469,8 +1483,8 @@ msgid ""
14691483"(Contributed by Victor Stinner in :gh:`128863`.)"
14701484msgstr ""
14711485"可以使用 `pythoncapi-compat project <https://github.com/python/pythoncapi-"
1472- "compat/>`__ 來取得這些於 Python 3.13 及更早版本的新公開函式。(由 "
1473- "Victor Stinner 在 :gh:`128863` 貢獻)"
1486+ "compat/>`__ 來取得這些於 Python 3.13 及更早版本的新公開函式。(由 Victor "
1487+ "Stinner 在 :gh:`128863` 貢獻)"
14741488
14751489#: ../../deprecations/c-api-pending-removal-in-future.rst:4
14761490msgid ""
@@ -1574,3 +1588,28 @@ msgstr ""
15741588#: ../../deprecations/c-api-pending-removal-in-future.rst:41
15751589msgid ":c:func:`PyThread_ReInitTLS`: Unneeded since Python 3.7."
15761590msgstr ":c:func:`PyThread_ReInitTLS`:自 Python 3.7 起不再需要。"
1591+
1592+ #~ msgid ""
1593+ #~ ":class:`typing.ByteString`, deprecated since Python 3.9, is scheduled for "
1594+ #~ "removal in Python 3.17. Prefer :class:`~collections.abc.Sequence` or :"
1595+ #~ "class:`~collections.abc.Buffer`. For use in type annotations, prefer a "
1596+ #~ "union, like ``bytes | bytearray``, or :class:`collections.abc.Buffer`. "
1597+ #~ "(Contributed by Shantanu Jain in :gh:`91896`.)"
1598+ #~ msgstr ""
1599+ #~ "自 Python 3.9 起已被棄用的 :class:`typing.ByteString`,計劃在 Python 3.17 "
1600+ #~ "中移除。建議改用 :class:`~collections.abc.Sequence` 或 :class:"
1601+ #~ "`~collections.abc.Buffer`。在型別註釋中建議改用聯集,例如 ``bytes | "
1602+ #~ "bytearray`` 或 :class:`collections.abc.Buffer`。(Shantanu Jain 於 :gh:"
1603+ #~ "`91896` 貢獻。)"
1604+
1605+ #~ msgid ""
1606+ #~ ":class:`collections.abc.ByteString` is scheduled for removal in Python "
1607+ #~ "3.17. Prefer :class:`~collections.abc.Sequence` or :class:`~collections."
1608+ #~ "abc.Buffer`. For use in type annotations, prefer a union, like ``bytes | "
1609+ #~ "bytearray``, or :class:`collections.abc.Buffer`. (Contributed by Shantanu "
1610+ #~ "Jain in :gh:`91896`.)"
1611+ #~ msgstr ""
1612+ #~ ":class:`collections.abc.ByteString` 計劃在 Python 3.17 中移除。建議改用 :"
1613+ #~ "class:`~collections.abc.Sequence` 或 :class:`~collections.abc.Buffer`。在"
1614+ #~ "型別註釋中建議改用聯集,例如 ``bytes | bytearray`` 或 :class:`collections."
1615+ #~ "abc.Buffer`。(Shantanu Jain 於 :gh:`91896` 貢獻。)"
0 commit comments