Skip to content

Commit f78dd35

Browse files
sync with cpython 4aeae286
1 parent 45ba94c commit f78dd35

16 files changed

+81
-73
lines changed

c-api/dict.po

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: Python 3.11\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2022-10-06 00:23+0000\n"
12+
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
1313
"PO-Revision-Date: 2017-09-22 18:26+0000\n"
1414
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -98,9 +98,10 @@ msgstr ""
9898

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

106107
#: ../../c-api/dict.rst:91

c-api/object.po

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-10-15 20:43+0000\n"
10+
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:32+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -301,8 +301,8 @@ msgstr ""
301301

302302
#: ../../c-api/object.rst:284
303303
msgid ""
304-
"Set a :exc:`TypeError` indicating that ``type(o)`` is not hashable and "
305-
"return ``-1``. This function receives special treatment when stored in a "
304+
"Set a :exc:`TypeError` indicating that ``type(o)`` is not :term:`hashable` "
305+
"and return ``-1``. This function receives special treatment when stored in a "
306306
"``tp_hash`` slot, allowing a type to explicitly indicate to the interpreter "
307307
"that it is not hashable."
308308
msgstr ""

faq/programming.po

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgid ""
1010
msgstr ""
1111
"Project-Id-Version: Python 3.11\n"
1212
"Report-Msgid-Bugs-To: \n"
13-
"POT-Creation-Date: 2022-12-29 00:16+0000\n"
13+
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
1414
"PO-Revision-Date: 2018-05-23 14:35+0000\n"
1515
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1616
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -2115,9 +2115,9 @@ msgstr ""
21152115

21162116
#: ../../faq/programming.rst:1982
21172117
msgid ""
2118-
"The *lru_cache* approach works with methods that have hashable arguments. "
2119-
"It creates a reference to the instance unless special efforts are made to "
2120-
"pass in weak references."
2118+
"The *lru_cache* approach works with methods that have :term:`hashable` "
2119+
"arguments. It creates a reference to the instance unless special efforts "
2120+
"are made to pass in weak references."
21212121
msgstr ""
21222122

21232123
#: ../../faq/programming.rst:1986

library/abc.po

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2021-10-26 16:47+0000\n"
10+
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:38+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -39,8 +39,8 @@ msgid ""
3939
"The :mod:`collections` module has some concrete classes that derive from "
4040
"ABCs; these can, of course, be further derived. In addition, the :mod:"
4141
"`collections.abc` submodule has some ABCs that can be used to test whether a "
42-
"class or instance provides a particular interface, for example, if it is "
43-
"hashable or if it is a mapping."
42+
"class or instance provides a particular interface, for example, if it is :"
43+
"term:`hashable` or if it is a mapping."
4444
msgstr ""
4545

4646
#: ../../library/abc.rst:27

library/collections.abc.po

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-10-15 20:43+0000\n"
10+
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:41+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -34,7 +34,7 @@ msgstr "**原始碼:**\\ :source:`Lib/_collections_abc.py`"
3434
msgid ""
3535
"This module provides :term:`abstract base classes <abstract base class>` "
3636
"that can be used to test whether a class provides a particular interface; "
37-
"for example, whether it is hashable or whether it is a mapping."
37+
"for example, whether it is :term:`hashable` or whether it is a mapping."
3838
msgstr ""
3939

4040
#: ../../library/collections.abc.rst:27
@@ -275,8 +275,8 @@ msgstr ":class:`MutableSet`"
275275
#: ../../library/collections.abc.rst:151
276276
msgid "``__contains__``, ``__iter__``, ``__len__``, ``add``, ``discard``"
277277
msgstr ""
278-
"``__contains__``\\\\ ``__iter__``\\\\ ``__len__``\\\\ ``add``"
279-
"\\\\ ``discard``"
278+
"``__contains__``\\\\ ``__iter__``\\\\ ``__len__``\\\\ "
279+
"``add``\\\\ ``discard``"
280280

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

628628
#: ../../library/collections.abc.rst:415

library/collections.po

+15-12
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgid ""
1010
msgstr ""
1111
"Project-Id-Version: Python 3.11\n"
1212
"Report-Msgid-Bugs-To: \n"
13-
"POT-Creation-Date: 2022-02-26 00:11+0000\n"
13+
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
1414
"PO-Revision-Date: 2022-03-01 01:14+0800\n"
1515
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1616
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -70,7 +70,8 @@ msgid ":class:`Counter`"
7070
msgstr ":class:`Counter`"
7171

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

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

232233
#: ../../library/collections.rst:102
233234
msgid ""
@@ -352,8 +353,9 @@ msgstr ""
352353
"::"
353354

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

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

14801483
#: ../../library/collections.rst:1175
14811484
msgid ""

library/datetime.po

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-01-21 00:16+0000\n"
10+
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:42+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -210,8 +210,8 @@ msgstr ""
210210

211211
#: ../../library/datetime.rst:163
212212
msgid ""
213-
"Objects of these types are hashable, meaning that they can be used as "
214-
"dictionary keys."
213+
"Objects of these types are :term:`hashable`, meaning that they can be used "
214+
"as dictionary keys."
215215
msgstr ""
216216

217217
#: ../../library/datetime.rst:165

library/fractions.po

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-10-15 20:43+0000\n"
10+
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
1111
"PO-Revision-Date: 2016-01-31 07:18+0000\n"
1212
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -70,9 +70,9 @@ msgstr ""
7070
msgid ""
7171
"The :class:`Fraction` class inherits from the abstract base class :class:"
7272
"`numbers.Rational`, and implements all of the methods and operations from "
73-
"that class. :class:`Fraction` instances are hashable, and should be treated "
74-
"as immutable. In addition, :class:`Fraction` has the following properties "
75-
"and methods:"
73+
"that class. :class:`Fraction` instances are :term:`hashable`, and should be "
74+
"treated as immutable. In addition, :class:`Fraction` has the following "
75+
"properties and methods:"
7676
msgstr ""
7777

7878
#: ../../library/fractions.rst:84

library/functools.po

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-12-25 00:16+0000\n"
10+
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:02+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -161,7 +161,7 @@ msgstr ""
161161
#: ../../library/functools.rst:149
162162
msgid ""
163163
"Since a dictionary is used to cache results, the positional and keyword "
164-
"arguments to the function must be hashable."
164+
"arguments to the function must be :term:`hashable`."
165165
msgstr ""
166166

167167
#: ../../library/functools.rst:152

library/graphlib.po

+5-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.11\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
11+
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -27,7 +27,9 @@ msgid "**Source code:** :source:`Lib/graphlib.py`"
2727
msgstr "**原始碼:**\\ :source:`Lib/graphlib.py`"
2828

2929
#: ../../library/graphlib.rst:20
30-
msgid "Provides functionality to topologically sort a graph of hashable nodes."
30+
msgid ""
31+
"Provides functionality to topologically sort a graph of :term:`hashable` "
32+
"nodes."
3133
msgstr ""
3234

3335
#: ../../library/graphlib.rst:22
@@ -94,7 +96,7 @@ msgstr ""
9496
#: ../../library/graphlib.rst:87
9597
msgid ""
9698
"Add a new node and its predecessors to the graph. Both the *node* and all "
97-
"elements in *predecessors* must be hashable."
99+
"elements in *predecessors* must be :term:`hashable`."
98100
msgstr ""
99101

100102
#: ../../library/graphlib.rst:90

library/inspect.po

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-11-26 00:17+0000\n"
10+
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
1111
"PO-Revision-Date: 2022-10-16 06:59+0800\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -955,7 +955,7 @@ msgid ""
955955
msgstr ""
956956

957957
#: ../../library/inspect.rst:670
958-
msgid "Signature objects are picklable and hashable."
958+
msgid "Signature objects are picklable and :term:`hashable`."
959959
msgstr ""
960960

961961
#: ../../library/inspect.rst:675
@@ -1029,7 +1029,7 @@ msgid ""
10291029
msgstr ""
10301030

10311031
#: ../../library/inspect.rst:748
1032-
msgid "Parameter objects are picklable and hashable."
1032+
msgid "Parameter objects are picklable and :term:`hashable`."
10331033
msgstr ""
10341034

10351035
#: ../../library/inspect.rst:753

library/operator.po

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgid ""
99
msgstr ""
1010
"Project-Id-Version: Python 3.11\n"
1111
"Report-Msgid-Bugs-To: \n"
12-
"POT-Creation-Date: 2022-10-15 20:43+0000\n"
12+
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
1313
"PO-Revision-Date: 2021-12-09 23:32+0800\n"
1414
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1515
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -317,10 +317,11 @@ msgstr ""
317317
"r[3])``。"
318318

319319
#: ../../library/operator.rst:329
320+
#, fuzzy
320321
msgid ""
321322
"The items can be any type accepted by the operand's :meth:`__getitem__` "
322-
"method. Dictionaries accept any hashable value. Lists, tuples, and strings "
323-
"accept an index or a slice:"
323+
"method. Dictionaries accept any :term:`hashable` value. Lists, tuples, and "
324+
"strings accept an index or a slice:"
324325
msgstr ""
325326
"傳入的條目可以為運算元的 :meth:`__getitem__` 所接受的任何型別。dictionary(字"
326327
"典)接受任意可雜湊 (hashable) 的值。list、tupple 和字串接受索引或切片:"

library/pathlib.po

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-01-31 00:17+0000\n"
10+
"POT-Creation-Date: 2023-02-15 00:17+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:07+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -193,9 +193,9 @@ msgstr ""
193193

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

201201
#: ../../library/pathlib.rst:202

0 commit comments

Comments
 (0)