Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
sync with cpython 4aeae286
  • Loading branch information
github-actions[bot] authored and mattwang44 committed Feb 18, 2023
commit 75cbdeb5be84768830b961f166a332444d771d4f
9 changes: 5 additions & 4 deletions c-api/dict.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-10-06 00:23+0000\n"
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -98,9 +98,10 @@ msgstr ""

#: ../../c-api/dict.rst:83
msgid ""
"Remove the entry in dictionary *p* with key *key*. *key* must be hashable; "
"if it isn't, :exc:`TypeError` is raised. If *key* is not in the dictionary, :"
"exc:`KeyError` is raised. Return ``0`` on success or ``-1`` on failure."
"Remove the entry in dictionary *p* with key *key*. *key* must be :term:"
"`hashable`; if it isn't, :exc:`TypeError` is raised. If *key* is not in the "
"dictionary, :exc:`KeyError` is raised. Return ``0`` on success or ``-1`` on "
"failure."
msgstr ""

#: ../../c-api/dict.rst:91
Expand Down
6 changes: 3 additions & 3 deletions c-api/object.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-10-15 20:43+0000\n"
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
"PO-Revision-Date: 2018-05-23 14:32+0000\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -301,8 +301,8 @@ msgstr ""

#: ../../c-api/object.rst:284
msgid ""
"Set a :exc:`TypeError` indicating that ``type(o)`` is not hashable and "
"return ``-1``. This function receives special treatment when stored in a "
"Set a :exc:`TypeError` indicating that ``type(o)`` is not :term:`hashable` "
"and return ``-1``. This function receives special treatment when stored in a "
"``tp_hash`` slot, allowing a type to explicitly indicate to the interpreter "
"that it is not hashable."
msgstr ""
Expand Down
8 changes: 4 additions & 4 deletions faq/programming.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-29 00:16+0000\n"
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
"PO-Revision-Date: 2023-02-18 13:52+0800\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -3033,9 +3033,9 @@ msgstr ""
#: ../../faq/programming.rst:1982
#, fuzzy
msgid ""
"The *lru_cache* approach works with methods that have hashable arguments. "
"It creates a reference to the instance unless special efforts are made to "
"pass in weak references."
"The *lru_cache* approach works with methods that have :term:`hashable` "
"arguments. It creates a reference to the instance unless special efforts "
"are made to pass in weak references."
msgstr ""
"*lru_cache* 方法適用於具有可散列引數的方法。除非特別努力傳遞弱引用,否則它會"
"建立對實例的引用。"
Expand Down
6 changes: 3 additions & 3 deletions library/abc.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-26 16:47+0000\n"
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
"PO-Revision-Date: 2018-05-23 14:38+0000\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -39,8 +39,8 @@ msgid ""
"The :mod:`collections` module has some concrete classes that derive from "
"ABCs; these can, of course, be further derived. In addition, the :mod:"
"`collections.abc` submodule has some ABCs that can be used to test whether a "
"class or instance provides a particular interface, for example, if it is "
"hashable or if it is a mapping."
"class or instance provides a particular interface, for example, if it is :"
"term:`hashable` or if it is a mapping."
msgstr ""

#: ../../library/abc.rst:27
Expand Down
14 changes: 7 additions & 7 deletions library/collections.abc.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-10-15 20:43+0000\n"
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
"PO-Revision-Date: 2018-05-23 14:41+0000\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand All @@ -34,7 +34,7 @@ msgstr "**原始碼:**\\ :source:`Lib/_collections_abc.py`"
msgid ""
"This module provides :term:`abstract base classes <abstract base class>` "
"that can be used to test whether a class provides a particular interface; "
"for example, whether it is hashable or whether it is a mapping."
"for example, whether it is :term:`hashable` or whether it is a mapping."
msgstr ""

#: ../../library/collections.abc.rst:27
Expand Down Expand Up @@ -275,8 +275,8 @@ msgstr ":class:`MutableSet`"
#: ../../library/collections.abc.rst:151
msgid "``__contains__``, ``__iter__``, ``__len__``, ``add``, ``discard``"
msgstr ""
"``__contains__``\\ 、\\ ``__iter__``\\ 、\\ ``__len__``\\ 、\\ ``add``"
"\\ 、\\ ``discard``"
"``__contains__``\\ 、\\ ``__iter__``\\ 、\\ ``__len__``\\ 、\\ "
"``add``\\ 、\\ ``discard``"

#: ../../library/collections.abc.rst:151
msgid ""
Expand Down Expand Up @@ -620,9 +620,9 @@ msgstr ""
msgid ""
"The :class:`Set` mixin provides a :meth:`_hash` method to compute a hash "
"value for the set; however, :meth:`__hash__` is not defined because not all "
"sets are hashable or immutable. To add set hashability using mixins, "
"inherit from both :meth:`Set` and :meth:`Hashable`, then define ``__hash__ = "
"Set._hash``."
"sets are :term:`hashable` or immutable. To add set hashability using "
"mixins, inherit from both :meth:`Set` and :meth:`Hashable`, then define "
"``__hash__ = Set._hash``."
msgstr ""

#: ../../library/collections.abc.rst:415
Expand Down
27 changes: 15 additions & 12 deletions library/collections.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-02-26 00:11+0000\n"
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
"PO-Revision-Date: 2022-03-01 01:14+0800\n"
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -70,7 +70,8 @@ msgid ":class:`Counter`"
msgstr ":class:`Counter`"

#: ../../library/collections.rst:28
msgid "dict subclass for counting hashable objects"
#, fuzzy
msgid "dict subclass for counting :term:`hashable` objects"
msgstr "dict 的子類別,用來計算可雜湊 (hashable) 物件的數量"

#: ../../library/collections.rst:29
Expand Down Expand Up @@ -225,9 +226,9 @@ msgid ""
"reference to ``d.parents`` is equivalent to: ``ChainMap(*d.maps[1:])``."
msgstr ""
"回傳一個包含除了第一個以外所有其他對映的新 :class:`ChainMap` 的特性,可用於需"
"要跳過第一個對映的搜索。使用情境類似於在\\ :term:`巢狀作用域 <nested scope>`"
"\\ 當中使用 :keyword:`nonlocal` 關鍵字,也可與內建函式 :func:`super` 做類比。"
"引用 ``d.parents`` 等同於 ``ChainMap(*d.maps[1:])``。"
"要跳過第一個對映的搜索。使用情境類似於在\\ :term:`巢狀作用域 <nested "
"scope>`\\ 當中使用 :keyword:`nonlocal` 關鍵字,也可與內建函式 :func:`super` "
"做類比。引用 ``d.parents`` 等同於 ``ChainMap(*d.maps[1:])``。"

#: ../../library/collections.rst:102
msgid ""
Expand Down Expand Up @@ -352,8 +353,9 @@ msgstr ""
"::"

#: ../../library/collections.rst:244
#, fuzzy
msgid ""
"A :class:`Counter` is a :class:`dict` subclass for counting hashable "
"A :class:`Counter` is a :class:`dict` subclass for counting :term:`hashable` "
"objects. It is a collection where elements are stored as dictionary keys and "
"their counts are stored as dictionary values. Counts are allowed to be any "
"integer value including zero or negative counts. The :class:`Counter` class "
Expand Down Expand Up @@ -839,10 +841,11 @@ msgid ""
"popleft`; otherwise, it can be cycled back to the end with the :meth:`~deque."
"rotate` method::"
msgstr ""
"一個\\ `輪詢調度器 <https://en.wikipedia.org/wiki/Round-robin_scheduling>`_"
"\\ 可以透過在 :class:`deque` 中放入 iterator 來實現,值自當前 iterator 的位"
"置 0 取出,如果 iterator 已經消耗完畢就用 :meth:`~deque.popleft` 將其從佇列中"
"移除,否則利用 :meth:`~deque.rotate` 來將其移至佇列尾端:\n"
"一個\\ `輪詢調度器 <https://en.wikipedia.org/wiki/Round-"
"robin_scheduling>`_\\ 可以透過在 :class:`deque` 中放入 iterator 來實現,值自"
"當前 iterator 的位置 0 取出,如果 iterator 已經消耗完畢就用 :meth:`~deque."
"popleft` 將其從佇列中移除,否則利用 :meth:`~deque.rotate` 來將其移至佇列尾"
"端:\n"
"\n"
"::"

Expand Down Expand Up @@ -1474,8 +1477,8 @@ msgid ""
"The items, keys, and values :term:`views <dictionary view>` of :class:"
"`OrderedDict` now support reverse iteration using :func:`reversed`."
msgstr ""
":class:`OrderedDict` 的項 (item)、鍵與值之\\ :term:`視圖 <dictionary view>`"
"\\ 現在可透過 :func:`reversed` 來倒序疊代。"
":class:`OrderedDict` 的項 (item)、鍵與值之\\ :term:`視圖 <dictionary "
"view>`\\ 現在可透過 :func:`reversed` 來倒序疊代。"

#: ../../library/collections.rst:1175
msgid ""
Expand Down
6 changes: 3 additions & 3 deletions library/datetime.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-01-21 00:16+0000\n"
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
"PO-Revision-Date: 2018-05-23 14:42+0000\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -210,8 +210,8 @@ msgstr ""

#: ../../library/datetime.rst:163
msgid ""
"Objects of these types are hashable, meaning that they can be used as "
"dictionary keys."
"Objects of these types are :term:`hashable`, meaning that they can be used "
"as dictionary keys."
msgstr ""

#: ../../library/datetime.rst:165
Expand Down
8 changes: 4 additions & 4 deletions library/fractions.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-10-15 20:43+0000\n"
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
"PO-Revision-Date: 2016-01-31 07:18+0000\n"
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -70,9 +70,9 @@ msgstr ""
msgid ""
"The :class:`Fraction` class inherits from the abstract base class :class:"
"`numbers.Rational`, and implements all of the methods and operations from "
"that class. :class:`Fraction` instances are hashable, and should be treated "
"as immutable. In addition, :class:`Fraction` has the following properties "
"and methods:"
"that class. :class:`Fraction` instances are :term:`hashable`, and should be "
"treated as immutable. In addition, :class:`Fraction` has the following "
"properties and methods:"
msgstr ""

#: ../../library/fractions.rst:84
Expand Down
4 changes: 2 additions & 2 deletions library/functools.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-12-25 00:16+0000\n"
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
"PO-Revision-Date: 2018-05-23 16:02+0000\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -161,7 +161,7 @@ msgstr ""
#: ../../library/functools.rst:149
msgid ""
"Since a dictionary is used to cache results, the positional and keyword "
"arguments to the function must be hashable."
"arguments to the function must be :term:`hashable`."
msgstr ""

#: ../../library/functools.rst:152
Expand Down
8 changes: 5 additions & 3 deletions library/graphlib.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand All @@ -27,7 +27,9 @@ msgid "**Source code:** :source:`Lib/graphlib.py`"
msgstr "**原始碼:**\\ :source:`Lib/graphlib.py`"

#: ../../library/graphlib.rst:20
msgid "Provides functionality to topologically sort a graph of hashable nodes."
msgid ""
"Provides functionality to topologically sort a graph of :term:`hashable` "
"nodes."
msgstr ""

#: ../../library/graphlib.rst:22
Expand Down Expand Up @@ -94,7 +96,7 @@ msgstr ""
#: ../../library/graphlib.rst:87
msgid ""
"Add a new node and its predecessors to the graph. Both the *node* and all "
"elements in *predecessors* must be hashable."
"elements in *predecessors* must be :term:`hashable`."
msgstr ""

#: ../../library/graphlib.rst:90
Expand Down
6 changes: 3 additions & 3 deletions library/inspect.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-11-26 00:17+0000\n"
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
"PO-Revision-Date: 2022-10-16 06:59+0800\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -955,7 +955,7 @@ msgid ""
msgstr ""

#: ../../library/inspect.rst:670
msgid "Signature objects are picklable and hashable."
msgid "Signature objects are picklable and :term:`hashable`."
msgstr ""

#: ../../library/inspect.rst:675
Expand Down Expand Up @@ -1029,7 +1029,7 @@ msgid ""
msgstr ""

#: ../../library/inspect.rst:748
msgid "Parameter objects are picklable and hashable."
msgid "Parameter objects are picklable and :term:`hashable`."
msgstr ""

#: ../../library/inspect.rst:753
Expand Down
7 changes: 4 additions & 3 deletions library/operator.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-10-15 20:43+0000\n"
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
"PO-Revision-Date: 2021-12-09 23:32+0800\n"
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -317,10 +317,11 @@ msgstr ""
"r[3])``。"

#: ../../library/operator.rst:329
#, fuzzy
msgid ""
"The items can be any type accepted by the operand's :meth:`__getitem__` "
"method. Dictionaries accept any hashable value. Lists, tuples, and strings "
"accept an index or a slice:"
"method. Dictionaries accept any :term:`hashable` value. Lists, tuples, and "
"strings accept an index or a slice:"
msgstr ""
"傳入的條目可以為運算元的 :meth:`__getitem__` 所接受的任何型別。dictionary(字"
"典)接受任意可雜湊 (hashable) 的值。list、tupple 和字串接受索引或切片:"
Expand Down
8 changes: 4 additions & 4 deletions library/pathlib.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-01-31 00:17+0000\n"
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
"PO-Revision-Date: 2018-05-23 16:07+0000\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -193,9 +193,9 @@ msgstr ""

#: ../../library/pathlib.rst:189
msgid ""
"Paths are immutable and hashable. Paths of a same flavour are comparable "
"and orderable. These properties respect the flavour's case-folding "
"semantics::"
"Paths are immutable and :term:`hashable`. Paths of a same flavour are "
"comparable and orderable. These properties respect the flavour's case-"
"folding semantics::"
msgstr ""

#: ../../library/pathlib.rst:202
Expand Down
Loading