Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitea358cf

Browse files
pydoc-zh-tw[bot]github-actions[bot]mattwang44
authored
Sync with CPython 3.11 (#396)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>Co-authored-by: Matt.Wang <mattwang44@gmail.com>
1 parent67f5b60 commitea358cf

20 files changed

+159
-155
lines changed

‎c-api/dict.po

Lines changed: 5 additions & 4 deletions
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/module.po

Lines changed: 8 additions & 8 deletions
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:2022-10-06 00:23+0000\n"
11+
"POT-Creation-Date:2023-02-18 00:17+0000\n"
1212
"PO-Revision-Date:2018-05-23 14:32+0000\n"
1313
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -444,17 +444,17 @@ msgstr ""
444444

445445
#:../../c-api/module.rst:391
446446
msgid""
447-
"Create a new module object, given the definition in *module* and the "
448-
"ModuleSpec*spec*. This behaves like :c:func:`PyModule_FromDefAndSpec2` "
449-
"with*module_api_version* set to :const:`PYTHON_API_VERSION`."
447+
"Create a new module object, given the definition in *def* and the ModuleSpec "
448+
"*spec*. This behaves like :c:func:`PyModule_FromDefAndSpec2` with "
449+
"*module_api_version* set to :const:`PYTHON_API_VERSION`."
450450
msgstr""
451451

452452
#:../../c-api/module.rst:399
453453
msgid""
454-
"Create a new module object, given the definition in *module* and the "
455-
"ModuleSpec*spec*, assuming the API version *module_api_version*. If that "
456-
"version doesnot match the version of the running interpreter, a :exc:"
457-
"`RuntimeWarning` isemitted."
454+
"Create a new module object, given the definition in *def* and the ModuleSpec "
455+
"*spec*, assuming the API version *module_api_version*. If that version does "
456+
"not match the version of the running interpreter, a :exc:`RuntimeWarning` is"
457+
"emitted."
458458
msgstr""
459459

460460
#:../../c-api/module.rst:406

‎c-api/object.po

Lines changed: 3 additions & 3 deletions
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-1520:43+0000\n"
10+
"POT-Creation-Date:2023-02-1500: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+
"andreturn ``-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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ 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"
14-
"PO-Revision-Date:2023-02-1813:52+0800\n"
13+
"POT-Creation-Date:2023-02-15 00:17+0000\n"
14+
"PO-Revision-Date:2023-02-1814:48+0800\n"
1515
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1616
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1717
"tw)\n"
@@ -3031,14 +3031,13 @@ msgstr ""
30313031
"積的方法結果也會累積。他們可以不受限制地成長。"
30323032

30333033
#:../../faq/programming.rst:1982
3034-
#,fuzzy
30353034
msgid""
3036-
"The *lru_cache* approach works with methods that have hashable arguments. "
3037-
"It creates a reference to the instance unless special efforts are made to "
3038-
"pass in weak references."
3035+
"The *lru_cache* approach works with methods that have:term:`hashable` "
3036+
"arguments.It creates a reference to the instance unless special efforts "
3037+
"are made topass in weak references."
30393038
msgstr""
3040-
"*lru_cache*方法適用於具有可散列引數的方法。除非特別努力傳遞弱引用,否則它會"
3041-
"建立對實例的引用。"
3039+
"*lru_cache*方法適用於具有\\ :term:`可雜湊 <hashable>`\\ 引數的方法。除非特別"
3040+
"努力傳遞弱引用,否則它會建立對實例的引用。"
30423041

30433042
#:../../faq/programming.rst:1986
30443043
#,fuzzy

‎library/abc.po

Lines changed: 3 additions & 3 deletions
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

Lines changed: 7 additions & 7 deletions
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-1520:43+0000\n"
10+
"POT-Creation-Date:2023-02-1500: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

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ 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"
14-
"PO-Revision-Date:2022-03-01 01:14+0800\n"
13+
"POT-Creation-Date:2023-02-15 00:17+0000\n"
14+
"PO-Revision-Date:2023-02-18 14:48+0800\n"
1515
"Last-Translator:Matt Wang <mattwang44@gmail.com>\n"
1616
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1717
"tw)\n"
@@ -20,7 +20,7 @@ msgstr ""
2020
"Content-Type:text/plain; charset=UTF-8\n"
2121
"Content-Transfer-Encoding:8bit\n"
2222
"Plural-Forms:nplurals=1; plural=0;\n"
23-
"X-Generator:Poedit 3.0.1\n"
23+
"X-Generator:Poedit 3.2.2\n"
2424

2525
#:../../library/collections.rst:2
2626
msgid":mod:`collections` --- Container datatypes"
@@ -70,8 +70,8 @@ msgid ":class:`Counter`"
7070
msgstr":class:`Counter`"
7171

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

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

232232
#:../../library/collections.rst:102
233233
msgid""
@@ -353,15 +353,16 @@ msgstr ""
353353

354354
#:../../library/collections.rst:244
355355
msgid""
356-
"A :class:`Counter` is a :class:`dict` subclass for counting hashable "
356+
"A :class:`Counter` is a :class:`dict` subclass for counting:term:`hashable` "
357357
"objects. It is a collection where elements are stored as dictionary keys and "
358358
"their counts are stored as dictionary values. Counts are allowed to be any "
359359
"integer value including zero or negative counts. The :class:`Counter` class "
360360
"is similar to bags or multisets in other languages."
361361
msgstr""
362-
":class:`Counter` 是 :class:`dict` 的子類別,用來計算可雜湊物件的數量。它是將"
363-
"物件與其計數作為字典的鍵值對儲存的集合容器。計數可以是包含 0 與負數的任何整數"
364-
"值。:class:`Counter` 類別類似其他程式語言中的 bags 或 multisets。"
362+
":class:`Counter` 是 :class:`dict` 的子類別,用來計算\\ :term:`可雜湊 "
363+
"<hashable>`\\ 物件的數量。它是將物件與其計數作為字典的鍵值對儲存的集合容器。"
364+
"計數可以是包含 0 與負數的任何整數值。:class:`Counter` 類別類似其他程式語言中"
365+
"的 bags 或 multisets。"
365366

366367
#:../../library/collections.rst:250
367368
msgid""
@@ -839,10 +840,11 @@ msgid ""
839840
"popleft`; otherwise, it can be cycled back to the end with the :meth:`~deque."
840841
"rotate` method::"
841842
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"
843+
"一個\\ `輪詢調度器 <https://en.wikipedia.org/wiki/Round-"
844+
"robin_scheduling>`_\\ 可以透過在 :class:`deque` 中放入 iterator 來實現,值自"
845+
"當前 iterator 的位置 0 取出,如果 iterator 已經消耗完畢就用 :meth:`~deque."
846+
"popleft` 將其從佇列中移除,否則利用 :meth:`~deque.rotate` 來將其移至佇列尾"
847+
"端:\n"
846848
"\n"
847849
"::"
848850

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

14801482
#:../../library/collections.rst:1175
14811483
msgid""

‎library/configparser.po

Lines changed: 8 additions & 8 deletions
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-31 08:13+0000\n"
10+
"POT-Creation-Date:2023-02-17 00:18+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-"
@@ -167,7 +167,7 @@ msgid ""
167167
"Please note that default values have precedence over fallback values. For "
168168
"instance, in our example the ``'CompressionLevel'`` key was specified only "
169169
"in the ``'DEFAULT'`` section. If we try to get it from the section "
170-
"``'topsecret.server.com'``, we will always get the default, even if we "
170+
"``'topsecret.server.example'``, we will always get the default, even if we "
171171
"specify a fallback:"
172172
msgstr""
173173

@@ -251,8 +251,8 @@ msgstr ""
251251

252252
#:../../library/configparser.rst:364
253253
msgid""
254-
"With ``interpolation`` set to ``None``, the parser would simply return``"
255-
"%(my_dir)s/Pictures`` as the value of ``my_pictures`` and ``%(home_dir)s/"
254+
"With ``interpolation`` set to ``None``, the parser would simply return "
255+
"``%(my_dir)s/Pictures`` as the value of ``my_pictures`` and ``%(home_dir)s/"
256256
"lumberjack`` as the value of ``my_dir``."
257257
msgstr""
258258

@@ -532,8 +532,8 @@ msgstr ""
532532

533533
#:../../library/configparser.rst:669
534534
msgid""
535-
"*default_section*, default value: ``configparser.DEFAULTSECT`` (that is:``"
536-
"\"DEFAULT\"``)"
535+
"*default_section*, default value: ``configparser.DEFAULTSECT`` (that is: "
536+
"``\"DEFAULT\"``)"
537537
msgstr""
538538

539539
#:../../library/configparser.rst:672
@@ -542,8 +542,8 @@ msgid ""
542542
"sections or interpolation purposes is a powerful concept of this library, "
543543
"letting users create complex declarative configurations. This section is "
544544
"normally called ``\"DEFAULT\"`` but this can be customized to point to any "
545-
"other valid section name. Some typical values include: ``\"general\"`` or``"
546-
"\"common\"``. The name provided is used for recognizing default sections "
545+
"other valid section name. Some typical values include: ``\"general\"`` or "
546+
"``\"common\"``. The name provided is used for recognizing default sections "
547547
"when reading from any source and is used when writing configuration back to "
548548
"a file. Its current value can be retrieved using the ``parser_instance."
549549
"default_section`` attribute and may be modified at runtime (i.e. to convert "

‎library/datetime.po

Lines changed: 3 additions & 3 deletions
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+
"asdictionary keys."
215215
msgstr""
216216

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp