Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 082d8d1

Browse files
[po] auto sync
1 parent 9ef7d24 commit 082d8d1

7 files changed

Lines changed: 7755 additions & 7714 deletions

File tree

c-api/structures.po

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.10\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2021-06-29 12:56+0000\n"
17+
"POT-Creation-Date: 2021-08-03 13:12+0000\n"
1818
"PO-Revision-Date: 2021-06-28 00:50+0000\n"
1919
"Last-Translator: Freesand Leo <[email protected]>, 2021\n"
2020
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -225,17 +225,17 @@ msgid ""
225225
msgstr ""
226226

227227
#: ../../c-api/structures.rst:239 ../../c-api/structures.rst:397
228-
#: ../../c-api/structures.rst:478
228+
#: ../../c-api/structures.rst:493
229229
msgid "Field"
230230
msgstr "域"
231231

232232
#: ../../c-api/structures.rst:239 ../../c-api/structures.rst:397
233-
#: ../../c-api/structures.rst:478
233+
#: ../../c-api/structures.rst:493
234234
msgid "C Type"
235235
msgstr "C 类型"
236236

237237
#: ../../c-api/structures.rst:239 ../../c-api/structures.rst:397
238-
#: ../../c-api/structures.rst:478
238+
#: ../../c-api/structures.rst:493
239239
msgid "Meaning"
240240
msgstr "含意"
241241

@@ -245,8 +245,8 @@ msgstr ":attr:`ml_name`"
245245

246246
#: ../../c-api/structures.rst:241 ../../c-api/structures.rst:249
247247
#: ../../c-api/structures.rst:399 ../../c-api/structures.rst:412
248-
#: ../../c-api/structures.rst:428 ../../c-api/structures.rst:480
249-
#: ../../c-api/structures.rst:488
248+
#: ../../c-api/structures.rst:428 ../../c-api/structures.rst:495
249+
#: ../../c-api/structures.rst:503
250250
msgid "const char \\*"
251251
msgstr ""
252252

@@ -646,86 +646,99 @@ msgid ""
646646
"be defined with ``T_PYSSIZET`` and ``READONLY``, for example::"
647647
msgstr ""
648648

649-
#: ../../c-api/structures.rst:474
649+
#: ../../c-api/structures.rst:475
650+
msgid ""
651+
"Get an attribute belonging to the object at address *obj_addr*. The "
652+
"attribute is described by ``PyMemberDef`` *m*. Returns ``NULL`` on error."
653+
msgstr ""
654+
655+
#: ../../c-api/structures.rst:482
656+
msgid ""
657+
"Set an attribute belonging to the object at address *obj_addr* to object "
658+
"*o*. The attribute to set is described by ``PyMemberDef`` *m*. Returns "
659+
"``0`` if successful and a negative value on failure."
660+
msgstr ""
661+
662+
#: ../../c-api/structures.rst:489
650663
msgid ""
651664
"Structure to define property-like access for a type. See also description of"
652665
" the :c:member:`PyTypeObject.tp_getset` slot."
653666
msgstr ""
654667

655-
#: ../../c-api/structures.rst:480
668+
#: ../../c-api/structures.rst:495
656669
msgid "name"
657670
msgstr "名称"
658671

659-
#: ../../c-api/structures.rst:480
672+
#: ../../c-api/structures.rst:495
660673
msgid "attribute name"
661674
msgstr ""
662675

663-
#: ../../c-api/structures.rst:482
676+
#: ../../c-api/structures.rst:497
664677
msgid "get"
665678
msgstr ""
666679

667-
#: ../../c-api/structures.rst:482
680+
#: ../../c-api/structures.rst:497
668681
msgid "getter"
669682
msgstr ""
670683

671-
#: ../../c-api/structures.rst:482
684+
#: ../../c-api/structures.rst:497
672685
msgid "C Function to get the attribute"
673686
msgstr ""
674687

675-
#: ../../c-api/structures.rst:484
688+
#: ../../c-api/structures.rst:499
676689
msgid "set"
677690
msgstr ""
678691

679-
#: ../../c-api/structures.rst:484
692+
#: ../../c-api/structures.rst:499
680693
msgid "setter"
681694
msgstr ""
682695

683-
#: ../../c-api/structures.rst:484
696+
#: ../../c-api/structures.rst:499
684697
msgid ""
685698
"optional C function to set or delete the attribute, if omitted the attribute"
686699
" is readonly"
687700
msgstr ""
688701

689-
#: ../../c-api/structures.rst:488
702+
#: ../../c-api/structures.rst:503
690703
msgid "doc"
691704
msgstr ""
692705

693-
#: ../../c-api/structures.rst:488
706+
#: ../../c-api/structures.rst:503
694707
msgid "optional docstring"
695708
msgstr ""
696709

697-
#: ../../c-api/structures.rst:490
710+
#: ../../c-api/structures.rst:505
698711
msgid "closure"
699712
msgstr ""
700713

701-
#: ../../c-api/structures.rst:490
714+
#: ../../c-api/structures.rst:505
702715
msgid "void \\*"
703716
msgstr ""
704717

705-
#: ../../c-api/structures.rst:490
718+
#: ../../c-api/structures.rst:505
706719
msgid ""
707720
"optional function pointer, providing additional data for getter and setter"
708721
msgstr ""
709722

710-
#: ../../c-api/structures.rst:495
723+
#: ../../c-api/structures.rst:510
711724
msgid ""
712725
"The ``get`` function takes one :c:type:`PyObject*` parameter (the instance) "
713726
"and a function pointer (the associated ``closure``)::"
714727
msgstr ""
715728

716-
#: ../../c-api/structures.rst:500
729+
#: ../../c-api/structures.rst:515
717730
msgid ""
718731
"It should return a new reference on success or ``NULL`` with a set exception"
719732
" on failure."
720733
msgstr ""
721734

722-
#: ../../c-api/structures.rst:503
735+
#: ../../c-api/structures.rst:518
723736
msgid ""
724737
"``set`` functions take two :c:type:`PyObject*` parameters (the instance and "
725738
"the value to be set) and a function pointer (the associated ``closure``)::"
726739
msgstr ""
727740

728-
#: ../../c-api/structures.rst:508
741+
#: ../../c-api/structures.rst:523
729742
msgid ""
730743
"In case the attribute should be deleted the second parameter is ``NULL``. "
731744
"Should return ``0`` on success or ``-1`` with a set exception on failure."

library/collections.po

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ msgid ""
1717
msgstr ""
1818
"Project-Id-Version: Python 3.10\n"
1919
"Report-Msgid-Bugs-To: \n"
20-
"POT-Creation-Date: 2021-07-22 13:04+0000\n"
20+
"POT-Creation-Date: 2021-08-03 13:12+0000\n"
2121
"PO-Revision-Date: 2021-06-28 00:56+0000\n"
2222
"Last-Translator: Freesand Leo <[email protected]>, 2021\n"
2323
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -1310,14 +1310,14 @@ msgstr "创建记住键值 *最后* 插入顺序的有序字典变体很简单
13101310
#: ../../library/collections.rst:1173
13111311
msgid ""
13121312
"An :class:`OrderedDict` would also be useful for implementing variants of "
1313-
":func:`functools.lru_cache`::"
1314-
msgstr "一个 :class:`OrderedDict` 对于实现 :func:`functools.lru_cache` 的变体也很有用::"
1313+
":func:`functools.lru_cache`:"
1314+
msgstr ""
13151315

1316-
#: ../../library/collections.rst:1198
1316+
#: ../../library/collections.rst:1214
13171317
msgid ":class:`UserDict` objects"
13181318
msgstr ":class:`UserDict` 对象"
13191319

1320-
#: ../../library/collections.rst:1200
1320+
#: ../../library/collections.rst:1216
13211321
msgid ""
13221322
"The class, :class:`UserDict` acts as a wrapper around dictionary objects. "
13231323
"The need for this class has been partially supplanted by the ability to "
@@ -1327,7 +1327,7 @@ msgstr ""
13271327
":class:`UserDict` 类是用作字典对象的外包装。对这个类的需求已部分由直接创建 :class:`dict` "
13281328
"的子类的功能所替代;不过,这个类处理起来更容易,因为底层的字典可以作为属性来访问。"
13291329

1330-
#: ../../library/collections.rst:1208
1330+
#: ../../library/collections.rst:1224
13311331
msgid ""
13321332
"Class that simulates a dictionary. The instance's contents are kept in a "
13331333
"regular dictionary, which is accessible via the :attr:`data` attribute of "
@@ -1339,22 +1339,22 @@ msgstr ""
13391339
"如果提供了 *initialdata*,则 :attr:`data` 会用其内容来初始化;请注意对 *initialdata* "
13401340
"的引用将不会被保留,以允许它被用于其他目的。"
13411341

1342-
#: ../../library/collections.rst:1214
1342+
#: ../../library/collections.rst:1230
13431343
msgid ""
13441344
"In addition to supporting the methods and operations of mappings, "
13451345
":class:`UserDict` instances provide the following attribute:"
13461346
msgstr ":class:`UserDict` 实例提供了以下属性作为扩展方法和操作的支持:"
13471347

1348-
#: ../../library/collections.rst:1219
1348+
#: ../../library/collections.rst:1235
13491349
msgid ""
13501350
"A real dictionary used to store the contents of the :class:`UserDict` class."
13511351
msgstr "一个真实的字典,用于保存 :class:`UserDict` 类的内容。"
13521352

1353-
#: ../../library/collections.rst:1225
1353+
#: ../../library/collections.rst:1241
13541354
msgid ":class:`UserList` objects"
13551355
msgstr ":class:`UserList` 对象"
13561356

1357-
#: ../../library/collections.rst:1227
1357+
#: ../../library/collections.rst:1243
13581358
msgid ""
13591359
"This class acts as a wrapper around list objects. It is a useful base class"
13601360
" for your own list-like classes which can inherit from them and override "
@@ -1363,15 +1363,15 @@ msgid ""
13631363
msgstr ""
13641364
"这个类封装了列表对象。它是一个有用的基础类,对于你想自定义的类似列表的类,可以继承和覆盖现有的方法,也可以添加新的方法。这样我们可以对列表添加新的行为。"
13651365

1366-
#: ../../library/collections.rst:1232
1366+
#: ../../library/collections.rst:1248
13671367
msgid ""
13681368
"The need for this class has been partially supplanted by the ability to "
13691369
"subclass directly from :class:`list`; however, this class can be easier to "
13701370
"work with because the underlying list is accessible as an attribute."
13711371
msgstr ""
13721372
"对这个类的需求已部分由直接创建 :class:`list` 的子类的功能所替代;不过,这个类处理起来更容易,因为底层的列表可以作为属性来访问。"
13731373

1374-
#: ../../library/collections.rst:1238
1374+
#: ../../library/collections.rst:1254
13751375
msgid ""
13761376
"Class that simulates a list. The instance's contents are kept in a regular "
13771377
"list, which is accessible via the :attr:`data` attribute of "
@@ -1383,19 +1383,19 @@ msgstr ""
13831383
"属性存取。实例内容被初始化为一个 *list* 的copy,默认为 ``[]`` 空列表。 *list* "
13841384
"可以是迭代对象,比如一个Python列表,或者一个 :class:`UserList` 对象。"
13851385

1386-
#: ../../library/collections.rst:1244
1386+
#: ../../library/collections.rst:1260
13871387
msgid ""
13881388
"In addition to supporting the methods and operations of mutable sequences, "
13891389
":class:`UserList` instances provide the following attribute:"
13901390
msgstr ":class:`UserList` 提供了以下属性作为可变序列的方法和操作的扩展:"
13911391

1392-
#: ../../library/collections.rst:1249
1392+
#: ../../library/collections.rst:1265
13931393
msgid ""
13941394
"A real :class:`list` object used to store the contents of the "
13951395
":class:`UserList` class."
13961396
msgstr "一个 :class:`list` 对象用于存储 :class:`UserList` 的内容。"
13971397

1398-
#: ../../library/collections.rst:1252
1398+
#: ../../library/collections.rst:1268
13991399
msgid ""
14001400
"**Subclassing requirements:** Subclasses of :class:`UserList` are expected "
14011401
"to offer a constructor which can be called with either no arguments or one "
@@ -1407,19 +1407,19 @@ msgstr ""
14071407
"**子类化的要求:** :class:`UserList` "
14081408
"的子类需要提供一个构造器,可以无参数调用,或者一个参数调用。返回一个新序列的列表操作需要创建一个实现类的实例。它假定了构造器可以以一个参数进行调用,这个参数是一个序列对象,作为数据源。"
14091409

1410-
#: ../../library/collections.rst:1259
1410+
#: ../../library/collections.rst:1275
14111411
msgid ""
14121412
"If a derived class does not wish to comply with this requirement, all of the"
14131413
" special methods supported by this class will need to be overridden; please "
14141414
"consult the sources for information about the methods which need to be "
14151415
"provided in that case."
14161416
msgstr "如果一个分离的类不希望依照这个需求,所有的特殊方法就必须重写;请参照源代码进行修改。"
14171417

1418-
#: ../../library/collections.rst:1265
1418+
#: ../../library/collections.rst:1281
14191419
msgid ":class:`UserString` objects"
14201420
msgstr ":class:`UserString` 对象"
14211421

1422-
#: ../../library/collections.rst:1267
1422+
#: ../../library/collections.rst:1283
14231423
msgid ""
14241424
"The class, :class:`UserString` acts as a wrapper around string objects. The "
14251425
"need for this class has been partially supplanted by the ability to subclass"
@@ -1429,7 +1429,7 @@ msgstr ""
14291429
":class:`UserString` 类是用作字符串对象的外包装。对这个类的需求已部分由直接创建 :class:`str` "
14301430
"的子类的功能所替代;不过,这个类处理起来更容易,因为底层的字符串可以作为属性来访问。"
14311431

1432-
#: ../../library/collections.rst:1275
1432+
#: ../../library/collections.rst:1291
14331433
msgid ""
14341434
"Class that simulates a string object. The instance's content is kept in a "
14351435
"regular string object, which is accessible via the :attr:`data` attribute of"
@@ -1440,19 +1440,19 @@ msgstr ""
14401440
"模拟一个字符串对象。这个实例对象的内容保存为一个正常字符串,通过 :class:`UserString` 的 :attr:`data` "
14411441
"属性存取。实例内容初始化设置为 *seq* 的copy。*seq* 参数可以是任何可通过内建 :func:`str` 函数转换为字符串的对象。"
14421442

1443-
#: ../../library/collections.rst:1282
1443+
#: ../../library/collections.rst:1298
14441444
msgid ""
14451445
"In addition to supporting the methods and operations of strings, "
14461446
":class:`UserString` instances provide the following attribute:"
14471447
msgstr ":class:`UserString` 提供了以下属性作为字符串方法和操作的额外支持:"
14481448

1449-
#: ../../library/collections.rst:1287
1449+
#: ../../library/collections.rst:1303
14501450
msgid ""
14511451
"A real :class:`str` object used to store the contents of the "
14521452
":class:`UserString` class."
14531453
msgstr "一个真正的 :class:`str` 对象用来存放 :class:`UserString` 类的内容。"
14541454

1455-
#: ../../library/collections.rst:1290
1455+
#: ../../library/collections.rst:1306
14561456
msgid ""
14571457
"New methods ``__getnewargs__``, ``__rmod__``, ``casefold``, ``format_map``, "
14581458
"``isprintable``, and ``maketrans``."

0 commit comments

Comments
 (0)