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

Skip to content

Commit 430f691

Browse files
[po] auto sync
1 parent 3be303f commit 430f691

6 files changed

Lines changed: 6950 additions & 6921 deletions

File tree

c-api/structures.po

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ msgid ""
1616
msgstr ""
1717
"Project-Id-Version: Python 3.9\n"
1818
"Report-Msgid-Bugs-To: \n"
19-
"POT-Creation-Date: 2021-01-01 05:02+0000\n"
19+
"POT-Creation-Date: 2021-08-03 07:07+0000\n"
2020
"PO-Revision-Date: 2017-02-16 17:39+0000\n"
2121
"Last-Translator: Freesand Leo <[email protected]>, 2021\n"
2222
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -192,17 +192,17 @@ msgid ""
192192
msgstr ""
193193

194194
#: ../../c-api/structures.rst:208 ../../c-api/structures.rst:364
195-
#: ../../c-api/structures.rst:445
195+
#: ../../c-api/structures.rst:460
196196
msgid "Field"
197197
msgstr "域"
198198

199199
#: ../../c-api/structures.rst:208 ../../c-api/structures.rst:364
200-
#: ../../c-api/structures.rst:445
200+
#: ../../c-api/structures.rst:460
201201
msgid "C Type"
202202
msgstr "C 类型"
203203

204204
#: ../../c-api/structures.rst:208 ../../c-api/structures.rst:364
205-
#: ../../c-api/structures.rst:445
205+
#: ../../c-api/structures.rst:460
206206
msgid "Meaning"
207207
msgstr "意义"
208208

@@ -212,8 +212,8 @@ msgstr ":attr:`ml_name`"
212212

213213
#: ../../c-api/structures.rst:210 ../../c-api/structures.rst:218
214214
#: ../../c-api/structures.rst:366 ../../c-api/structures.rst:379
215-
#: ../../c-api/structures.rst:395 ../../c-api/structures.rst:447
216-
#: ../../c-api/structures.rst:455
215+
#: ../../c-api/structures.rst:395 ../../c-api/structures.rst:462
216+
#: ../../c-api/structures.rst:470
217217
msgid "const char \\*"
218218
msgstr ""
219219

@@ -609,86 +609,99 @@ msgid ""
609609
"be defined with ``T_PYSSIZET`` and ``READONLY``, for example::"
610610
msgstr ""
611611

612-
#: ../../c-api/structures.rst:441
612+
#: ../../c-api/structures.rst:442
613+
msgid ""
614+
"Get an attribute belonging to the object at address *obj_addr*. The "
615+
"attribute is described by ``PyMemberDef`` *m*. Returns ``NULL`` on error."
616+
msgstr ""
617+
618+
#: ../../c-api/structures.rst:449
619+
msgid ""
620+
"Set an attribute belonging to the object at address *obj_addr* to object "
621+
"*o*. The attribute to set is described by ``PyMemberDef`` *m*. Returns "
622+
"``0`` if successful and a negative value on failure."
623+
msgstr ""
624+
625+
#: ../../c-api/structures.rst:456
613626
msgid ""
614627
"Structure to define property-like access for a type. See also description of"
615628
" the :c:member:`PyTypeObject.tp_getset` slot."
616629
msgstr ""
617630

618-
#: ../../c-api/structures.rst:447
631+
#: ../../c-api/structures.rst:462
619632
msgid "name"
620633
msgstr "name"
621634

622-
#: ../../c-api/structures.rst:447
635+
#: ../../c-api/structures.rst:462
623636
msgid "attribute name"
624637
msgstr ""
625638

626-
#: ../../c-api/structures.rst:449
639+
#: ../../c-api/structures.rst:464
627640
msgid "get"
628641
msgstr ""
629642

630-
#: ../../c-api/structures.rst:449
643+
#: ../../c-api/structures.rst:464
631644
msgid "getter"
632645
msgstr ""
633646

634-
#: ../../c-api/structures.rst:449
647+
#: ../../c-api/structures.rst:464
635648
msgid "C Function to get the attribute"
636649
msgstr ""
637650

638-
#: ../../c-api/structures.rst:451
651+
#: ../../c-api/structures.rst:466
639652
msgid "set"
640653
msgstr ""
641654

642-
#: ../../c-api/structures.rst:451
655+
#: ../../c-api/structures.rst:466
643656
msgid "setter"
644657
msgstr ""
645658

646-
#: ../../c-api/structures.rst:451
659+
#: ../../c-api/structures.rst:466
647660
msgid ""
648661
"optional C function to set or delete the attribute, if omitted the attribute"
649662
" is readonly"
650663
msgstr ""
651664

652-
#: ../../c-api/structures.rst:455
665+
#: ../../c-api/structures.rst:470
653666
msgid "doc"
654667
msgstr ""
655668

656-
#: ../../c-api/structures.rst:455
669+
#: ../../c-api/structures.rst:470
657670
msgid "optional docstring"
658671
msgstr ""
659672

660-
#: ../../c-api/structures.rst:457
673+
#: ../../c-api/structures.rst:472
661674
msgid "closure"
662675
msgstr ""
663676

664-
#: ../../c-api/structures.rst:457
677+
#: ../../c-api/structures.rst:472
665678
msgid "void \\*"
666679
msgstr ""
667680

668-
#: ../../c-api/structures.rst:457
681+
#: ../../c-api/structures.rst:472
669682
msgid ""
670683
"optional function pointer, providing additional data for getter and setter"
671684
msgstr ""
672685

673-
#: ../../c-api/structures.rst:462
686+
#: ../../c-api/structures.rst:477
674687
msgid ""
675688
"The ``get`` function takes one :c:type:`PyObject*` parameter (the instance) "
676689
"and a function pointer (the associated ``closure``)::"
677690
msgstr ""
678691

679-
#: ../../c-api/structures.rst:467
692+
#: ../../c-api/structures.rst:482
680693
msgid ""
681694
"It should return a new reference on success or ``NULL`` with a set exception"
682695
" on failure."
683696
msgstr ""
684697

685-
#: ../../c-api/structures.rst:470
698+
#: ../../c-api/structures.rst:485
686699
msgid ""
687700
"``set`` functions take two :c:type:`PyObject*` parameters (the instance and "
688701
"the value to be set) and a function pointer (the associated ``closure``)::"
689702
msgstr ""
690703

691-
#: ../../c-api/structures.rst:475
704+
#: ../../c-api/structures.rst:490
692705
msgid ""
693706
"In case the attribute should be deleted the second parameter is ``NULL``. "
694707
"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.9\n"
1919
"Report-Msgid-Bugs-To: \n"
20-
"POT-Creation-Date: 2021-07-23 06:59+0000\n"
20+
"POT-Creation-Date: 2021-08-03 07:07+0000\n"
2121
"PO-Revision-Date: 2017-02-16 23:03+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"
@@ -1286,14 +1286,14 @@ msgstr "创建记住键值 *最后* 插入顺序的有序字典变体很简单
12861286
#: ../../library/collections.rst:1151
12871287
msgid ""
12881288
"An :class:`OrderedDict` would also be useful for implementing variants of "
1289-
":func:`functools.lru_cache`::"
1290-
msgstr "一个 :class:`OrderedDict` 对于实现 :func:`functools.lru_cache` 的变体也很有用::"
1289+
":func:`functools.lru_cache`:"
1290+
msgstr ""
12911291

1292-
#: ../../library/collections.rst:1176
1292+
#: ../../library/collections.rst:1192
12931293
msgid ":class:`UserDict` objects"
12941294
msgstr ":class:`UserDict` 对象"
12951295

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

1306-
#: ../../library/collections.rst:1186
1306+
#: ../../library/collections.rst:1202
13071307
msgid ""
13081308
"Class that simulates a dictionary. The instance's contents are kept in a "
13091309
"regular dictionary, which is accessible via the :attr:`data` attribute of "
@@ -1315,22 +1315,22 @@ msgstr ""
13151315
"如果提供了 *initialdata*,则 :attr:`data` 会用其内容来初始化;请注意对 *initialdata* "
13161316
"的引用将不会被保留,以允许它被用于其他目的。"
13171317

1318-
#: ../../library/collections.rst:1192
1318+
#: ../../library/collections.rst:1208
13191319
msgid ""
13201320
"In addition to supporting the methods and operations of mappings, "
13211321
":class:`UserDict` instances provide the following attribute:"
13221322
msgstr ":class:`UserDict` 实例提供了以下属性作为扩展方法和操作的支持:"
13231323

1324-
#: ../../library/collections.rst:1197
1324+
#: ../../library/collections.rst:1213
13251325
msgid ""
13261326
"A real dictionary used to store the contents of the :class:`UserDict` class."
13271327
msgstr "一个真实的字典,用于保存 :class:`UserDict` 类的内容。"
13281328

1329-
#: ../../library/collections.rst:1203
1329+
#: ../../library/collections.rst:1219
13301330
msgid ":class:`UserList` objects"
13311331
msgstr ":class:`UserList` 对象"
13321332

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

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

1350-
#: ../../library/collections.rst:1216
1350+
#: ../../library/collections.rst:1232
13511351
msgid ""
13521352
"Class that simulates a list. The instance's contents are kept in a regular "
13531353
"list, which is accessible via the :attr:`data` attribute of "
@@ -1359,19 +1359,19 @@ msgstr ""
13591359
"属性存取。实例内容被初始化为一个 *list* 的copy,默认为 ``[]`` 空列表。 *list* "
13601360
"可以是迭代对象,比如一个Python列表,或者一个 :class:`UserList` 对象。"
13611361

1362-
#: ../../library/collections.rst:1222
1362+
#: ../../library/collections.rst:1238
13631363
msgid ""
13641364
"In addition to supporting the methods and operations of mutable sequences, "
13651365
":class:`UserList` instances provide the following attribute:"
13661366
msgstr ":class:`UserList` 提供了以下属性作为可变序列的方法和操作的扩展:"
13671367

1368-
#: ../../library/collections.rst:1227
1368+
#: ../../library/collections.rst:1243
13691369
msgid ""
13701370
"A real :class:`list` object used to store the contents of the "
13711371
":class:`UserList` class."
13721372
msgstr "一个 :class:`list` 对象用于存储 :class:`UserList` 的内容。"
13731373

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

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

1394-
#: ../../library/collections.rst:1243
1394+
#: ../../library/collections.rst:1259
13951395
msgid ":class:`UserString` objects"
13961396
msgstr ":class:`UserString` 对象"
13971397

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

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

1419-
#: ../../library/collections.rst:1260
1419+
#: ../../library/collections.rst:1276
14201420
msgid ""
14211421
"In addition to supporting the methods and operations of strings, "
14221422
":class:`UserString` instances provide the following attribute:"
14231423
msgstr ":class:`UserString` 提供了以下属性作为字符串方法和操作的额外支持:"
14241424

1425-
#: ../../library/collections.rst:1265
1425+
#: ../../library/collections.rst:1281
14261426
msgid ""
14271427
"A real :class:`str` object used to store the contents of the "
14281428
":class:`UserString` class."
14291429
msgstr "一个真正的 :class:`str` 对象用来存放 :class:`UserString` 类的内容。"
14301430

1431-
#: ../../library/collections.rst:1268
1431+
#: ../../library/collections.rst:1284
14321432
msgid ""
14331433
"New methods ``__getnewargs__``, ``__rmod__``, ``casefold``, ``format_map``, "
14341434
"``isprintable``, and ``maketrans``."

library/os.path.po

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.9\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2021-07-13 06:53+0000\n"
17+
"POT-Creation-Date: 2021-08-03 07:07+0000\n"
1818
"PO-Revision-Date: 2017-02-16 23:20+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"
@@ -127,7 +127,7 @@ msgstr ""
127127
#: ../../library/os.path.rst:365 ../../library/os.path.rst:384
128128
#: ../../library/os.path.rst:402 ../../library/os.path.rst:415
129129
#: ../../library/os.path.rst:431 ../../library/os.path.rst:447
130-
#: ../../library/os.path.rst:468 ../../library/os.path.rst:479
130+
#: ../../library/os.path.rst:472 ../../library/os.path.rst:498
131131
msgid "Accepts a :term:`path-like object`."
132132
msgstr "接受一个 :term:`类路径对象 <path-like object>`。"
133133

@@ -527,35 +527,37 @@ msgstr "在 Windows 上,本方法将路径拆分为驱动器/UNC 根节点和
527527
#: ../../library/os.path.rst:460
528528
msgid ""
529529
"If the path contains a drive letter, drive will contain everything up to and"
530-
" including the colon. e.g. ``splitdrive(\"c:/dir\")`` returns ``(\"c:\", "
531-
"\"/dir\")``"
530+
" including the colon::"
532531
msgstr ""
533-
"如果路径 path 包含盘符,则 drive 将包含冒号及冒号前面的所有内容。例如 ``splitdrive(\"c:/dir\")`` 返回 "
534-
"``(\"c:\", \"/dir\")``。"
535532

536-
#: ../../library/os.path.rst:464
533+
#: ../../library/os.path.rst:466
537534
msgid ""
538535
"If the path contains a UNC path, drive will contain the host name and share,"
539-
" up to but not including the fourth separator. e.g. "
540-
"``splitdrive(\"//host/computer/dir\")`` returns ``(\"//host/computer\", "
541-
"\"/dir\")``"
536+
" up to but not including the fourth separator::"
542537
msgstr ""
543-
"如果 path 是一个 UNC 路径,则 drive 将包含主机名和共享点,但不包括第四个分隔符。例如 "
544-
"``splitdrive(\"//host/computer/dir\")`` 返回 ``(\"//host/computer\", "
545-
"\"/dir\")``。"
546538

547-
#: ../../library/os.path.rst:474
539+
#: ../../library/os.path.rst:478
548540
msgid ""
549541
"Split the pathname *path* into a pair ``(root, ext)`` such that ``root + "
550-
"ext == path``, and *ext* is empty or begins with a period and contains at "
551-
"most one period. Leading periods on the basename are ignored; "
552-
"``splitext('.cshrc')`` returns ``('.cshrc', '')``."
542+
"ext == path``, and the extension, *ext*, is empty or begins with a period "
543+
"and contains at most one period."
553544
msgstr ""
554-
"将路径 *path* 拆分为一对,即 ``(root, ext)``,使 ``root + ext == path``,其中 *ext* "
555-
"为空或以英文句点开头,且最多包含一个句点。路径前的句点将被忽略,例如 ``splitext('.cshrc')`` 返回 ``('.cshrc', "
556-
"'')``。"
557545

558-
#: ../../library/os.path.rst:485
546+
#: ../../library/os.path.rst:482
547+
msgid "If the path contains no extension, *ext* will be ``''``::"
548+
msgstr ""
549+
550+
#: ../../library/os.path.rst:487
551+
msgid ""
552+
"If the path contains an extension, then *ext* will be set to this extension,"
553+
" including the leading period. Note that previous periods will be ignored::"
554+
msgstr ""
555+
556+
#: ../../library/os.path.rst:493
557+
msgid "Leading periods on the basename are ignored::"
558+
msgstr ""
559+
560+
#: ../../library/os.path.rst:504
559561
msgid ""
560562
"``True`` if arbitrary Unicode strings can be used as file names (within "
561563
"limitations imposed by the file system)."

0 commit comments

Comments
 (0)