Skip to content

Commit e2a9d2c

Browse files
committed
chore: sync with cpython and fix fuzzy entry
1 parent cbc526f commit e2a9d2c

File tree

1 file changed

+30
-32
lines changed

1 file changed

+30
-32
lines changed

library/collections.po

+30-32
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgid ""
1010
msgstr ""
1111
"Project-Id-Version: Python 3.10\n"
1212
"Report-Msgid-Bugs-To: \n"
13-
"POT-Creation-Date: 2021-10-28 17:11+0000\n"
13+
"POT-Creation-Date: 2022-01-14 13:34+0800\n"
1414
"PO-Revision-Date: 2022-01-14 13:26+0800\n"
1515
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
1616
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -964,7 +964,7 @@ msgstr ""
964964
"此屬性為 :meth:`__missing__` 方法所使用。如果有引數被傳入建構函式,則此屬性會"
965965
"被初始化成第一個引數,如未提供引數則被初始化為 ``None``。"
966966

967-
#: ../../library/collections.rst:757 ../../library/collections.rst:1154
967+
#: ../../library/collections.rst:757 ../../library/collections.rst:1156
968968
msgid ""
969969
"Added merge (``|``) and update (``|=``) operators, specified in :pep:`584`."
970970
msgstr "新增合併 (``|``) 和更新 (``|=``) 運算子,請見 :pep:`584`。"
@@ -1397,23 +1397,21 @@ msgstr ""
13971397
msgid ""
13981398
"Move an existing *key* to either end of an ordered dictionary. The item is "
13991399
"moved to the right end if *last* is true (the default) or to the beginning "
1400-
"if *last* is false. Raises :exc:`KeyError` if the *key* does not exist::"
1400+
"if *last* is false. Raises :exc:`KeyError` if the *key* does not exist:"
14011401
msgstr ""
14021402
"將現有的 *key* 移動到 ordered dictionary 的任一端。如果 *last* 為真值(此為預"
14031403
"設值)則將元素移至右端;如果 *last* 為假值則將元素移至左端。如果 *key* 不存在"
1404-
"則會引發 :exc:`KeyError`:\n"
1405-
"\n"
1406-
"::"
1404+
"則會引發 :exc:`KeyError`:"
14071405

1408-
#: ../../library/collections.rst:1135
1406+
#: ../../library/collections.rst:1137
14091407
msgid ""
14101408
"In addition to the usual mapping methods, ordered dictionaries also support "
14111409
"reverse iteration using :func:`reversed`."
14121410
msgstr ""
14131411
"除了普通的對映方法,ordered dictionary 還支援了透過 :func:`reversed` 來做倒序"
14141412
"疊代。"
14151413

1416-
#: ../../library/collections.rst:1138
1414+
#: ../../library/collections.rst:1140
14171415
msgid ""
14181416
"Equality tests between :class:`OrderedDict` objects are order-sensitive and "
14191417
"are implemented as ``list(od1.items())==list(od2.items())``. Equality tests "
@@ -1427,27 +1425,27 @@ msgstr ""
14271425
"和其他 :class:`~collections.abc.Mapping` 物件間的相等性運算則像普通字典一樣不"
14281426
"考慮順序性,這使得 :class:`OrderedDict` 可於任何字典可使用的時機中被替換掉。"
14291427

1430-
#: ../../library/collections.rst:1145
1428+
#: ../../library/collections.rst:1147
14311429
msgid ""
14321430
"The items, keys, and values :term:`views <dictionary view>` of :class:"
14331431
"`OrderedDict` now support reverse iteration using :func:`reversed`."
14341432
msgstr ""
14351433
":class:`OrderedDict` 的項 (item)、鍵與值之\\ :term:`視圖 <dictionary view>`"
14361434
"\\ 現在可透過 :func:`reversed` 來倒序疊代。"
14371435

1438-
#: ../../library/collections.rst:1149
1436+
#: ../../library/collections.rst:1151
14391437
msgid ""
14401438
"With the acceptance of :pep:`468`, order is retained for keyword arguments "
14411439
"passed to the :class:`OrderedDict` constructor and its :meth:`update` method."
14421440
msgstr ""
14431441
"隨著 :pep:`468` 被核可,被傳入給 :class:`OrderedDict` 建構函式與其 :meth:"
14441442
"`update` 方法的關鍵字引數之順序被保留了下來。"
14451443

1446-
#: ../../library/collections.rst:1159
1444+
#: ../../library/collections.rst:1161
14471445
msgid ":class:`OrderedDict` Examples and Recipes"
14481446
msgstr ":class:`OrderedDict` 範例與用法"
14491447

1450-
#: ../../library/collections.rst:1161
1448+
#: ../../library/collections.rst:1163
14511449
msgid ""
14521450
"It is straightforward to create an ordered dictionary variant that remembers "
14531451
"the order the keys were *last* inserted. If a new entry overwrites an "
@@ -1459,19 +1457,19 @@ msgstr ""
14591457
"\n"
14601458
"::"
14611459

1462-
#: ../../library/collections.rst:1173
1460+
#: ../../library/collections.rst:1175
14631461
msgid ""
14641462
"An :class:`OrderedDict` would also be useful for implementing variants of :"
14651463
"func:`functools.lru_cache`:"
14661464
msgstr ""
14671465
":class:`OrderedDict` 在實現一個 :func:`functools.lru_cache` 的變形版本時也非"
14681466
"常有用:"
14691467

1470-
#: ../../library/collections.rst:1271
1468+
#: ../../library/collections.rst:1273
14711469
msgid ":class:`UserDict` objects"
14721470
msgstr ":class:`UserDict` 物件"
14731471

1474-
#: ../../library/collections.rst:1273
1472+
#: ../../library/collections.rst:1275
14751473
msgid ""
14761474
"The class, :class:`UserDict` acts as a wrapper around dictionary objects. "
14771475
"The need for this class has been partially supplanted by the ability to "
@@ -1482,7 +1480,7 @@ msgstr ""
14821480
"`dict` 建立子類別,這個類別的需求已部分被滿足,不過這個類別使用起來更方便,因"
14831481
"為被包裝的字典可以作為其屬性來存取。"
14841482

1485-
#: ../../library/collections.rst:1281
1483+
#: ../../library/collections.rst:1283
14861484
msgid ""
14871485
"Class that simulates a dictionary. The instance's contents are kept in a "
14881486
"regular dictionary, which is accessible via the :attr:`data` attribute of :"
@@ -1494,23 +1492,23 @@ msgstr ""
14941492
"`data` 屬性來做存取。如果有提供 *initialdata*\\\\ :attr:`data` 屬性會被初"
14951493
"始化為其值;要注意指到 *initialdata* 的參照不會被保留,使其可被用於其他目的。"
14961494

1497-
#: ../../library/collections.rst:1287
1495+
#: ../../library/collections.rst:1289
14981496
msgid ""
14991497
"In addition to supporting the methods and operations of mappings, :class:"
15001498
"`UserDict` instances provide the following attribute:"
15011499
msgstr ""
15021500
"除了支援作為對映所需的方法與操作,\\ :class:`UserDict` 實例提供了以下屬性:"
15031501

1504-
#: ../../library/collections.rst:1292
1502+
#: ../../library/collections.rst:1294
15051503
msgid ""
15061504
"A real dictionary used to store the contents of the :class:`UserDict` class."
15071505
msgstr "一個真實的字典,用於儲存 :class:`UserDict` 類別的資料內容。"
15081506

1509-
#: ../../library/collections.rst:1298
1507+
#: ../../library/collections.rst:1300
15101508
msgid ":class:`UserList` objects"
15111509
msgstr ":class:`UserList` 物件"
15121510

1513-
#: ../../library/collections.rst:1300
1511+
#: ../../library/collections.rst:1302
15141512
msgid ""
15151513
"This class acts as a wrapper around list objects. It is a useful base class "
15161514
"for your own list-like classes which can inherit from them and override "
@@ -1521,7 +1519,7 @@ msgstr ""
15211519
"入新方法來定義你所需的一個類似於 list 的類別。如此一來,我們可以為 list 加入"
15221520
"新的特性。"
15231521

1524-
#: ../../library/collections.rst:1305
1522+
#: ../../library/collections.rst:1307
15251523
msgid ""
15261524
"The need for this class has been partially supplanted by the ability to "
15271525
"subclass directly from :class:`list`; however, this class can be easier to "
@@ -1530,7 +1528,7 @@ msgstr ""
15301528
"因為已經可以直接自 :class:`list` 建立子類別,這個類別的需求已部分被滿足,不過"
15311529
"這個類別使用起來更方便,因為被包裝的 list 可以作為其屬性來存取。"
15321530

1533-
#: ../../library/collections.rst:1311
1531+
#: ../../library/collections.rst:1313
15341532
msgid ""
15351533
"Class that simulates a list. The instance's contents are kept in a regular "
15361534
"list, which is accessible via the :attr:`data` attribute of :class:"
@@ -1543,21 +1541,21 @@ msgstr ""
15431541
"list ``[]``。\\ *list* 可以是任何 iterable,例如一個真實的 Python list 或是一"
15441542
"個 :class:`UserList` 物件。"
15451543

1546-
#: ../../library/collections.rst:1317
1544+
#: ../../library/collections.rst:1319
15471545
msgid ""
15481546
"In addition to supporting the methods and operations of mutable sequences, :"
15491547
"class:`UserList` instances provide the following attribute:"
15501548
msgstr ""
15511549
"除了支援可變序列的方法與操作,\\ :class:`UserList` 實例提供了以下屬性:"
15521550

1553-
#: ../../library/collections.rst:1322
1551+
#: ../../library/collections.rst:1324
15541552
msgid ""
15551553
"A real :class:`list` object used to store the contents of the :class:"
15561554
"`UserList` class."
15571555
msgstr ""
15581556
"一個真實的 :class:`list` 物件,用於儲存 :class:`UserList` 類別的資料內容。"
15591557

1560-
#: ../../library/collections.rst:1325
1558+
#: ../../library/collections.rst:1327
15611559
msgid ""
15621560
"**Subclassing requirements:** Subclasses of :class:`UserList` are expected "
15631561
"to offer a constructor which can be called with either no arguments or one "
@@ -1571,7 +1569,7 @@ msgstr ""
15711569
"例,為了達成上述目的,它假設建構函式可傳入單一參數來呼叫,該參數即是做為數據"
15721570
"來源的一個序列物件。"
15731571

1574-
#: ../../library/collections.rst:1332
1572+
#: ../../library/collections.rst:1334
15751573
msgid ""
15761574
"If a derived class does not wish to comply with this requirement, all of the "
15771575
"special methods supported by this class will need to be overridden; please "
@@ -1581,11 +1579,11 @@ msgstr ""
15811579
"如果希望一個自此獲得的子類別不遵從上述要求,那所有該類別支援的特殊方法則必須"
15821580
"被覆寫;請參考原始碼來理解在這情況下哪些方法是必須提供的。"
15831581

1584-
#: ../../library/collections.rst:1338
1582+
#: ../../library/collections.rst:1340
15851583
msgid ":class:`UserString` objects"
15861584
msgstr ":class:`UserString` 物件"
15871585

1588-
#: ../../library/collections.rst:1340
1586+
#: ../../library/collections.rst:1342
15891587
msgid ""
15901588
"The class, :class:`UserString` acts as a wrapper around string objects. The "
15911589
"need for this class has been partially supplanted by the ability to subclass "
@@ -1596,7 +1594,7 @@ msgstr ""
15961594
"建立子類別,這個類別的需求已經部分被滿足,不過這個類別使用起來更方便,因為被"
15971595
"包裝的字串可以作為其屬性來存取。"
15981596

1599-
#: ../../library/collections.rst:1348
1597+
#: ../../library/collections.rst:1350
16001598
msgid ""
16011599
"Class that simulates a string object. The instance's content is kept in a "
16021600
"regular string object, which is accessible via the :attr:`data` attribute "
@@ -1608,21 +1606,21 @@ msgstr ""
16081606
"的 :attr:`data` 屬性來做存取。實例內容被初始化為 *seq* 的複製,\\ *seq* 引數"
16091607
"可以是任何可被內建函式 :func:`str` 轉換成字串的物件。"
16101608

1611-
#: ../../library/collections.rst:1355
1609+
#: ../../library/collections.rst:1357
16121610
msgid ""
16131611
"In addition to supporting the methods and operations of strings, :class:"
16141612
"`UserString` instances provide the following attribute:"
16151613
msgstr ""
16161614
"除了支援字串的方法和操作以外,\\ :class:`UserString` 實例也提供了以下屬性:"
16171615

1618-
#: ../../library/collections.rst:1360
1616+
#: ../../library/collections.rst:1362
16191617
msgid ""
16201618
"A real :class:`str` object used to store the contents of the :class:"
16211619
"`UserString` class."
16221620
msgstr ""
16231621
"一個真實的 :class:`str` 物件,用來儲存 :class:`UserString` 類別的資料內容。"
16241622

1625-
#: ../../library/collections.rst:1363
1623+
#: ../../library/collections.rst:1365
16261624
msgid ""
16271625
"New methods ``__getnewargs__``, ``__rmod__``, ``casefold``, ``format_map``, "
16281626
"``isprintable``, and ``maketrans``."

0 commit comments

Comments
 (0)