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

Skip to content

Commit f99f77d

Browse files
[po] auto sync
1 parent 68ef405 commit f99f77d

6 files changed

Lines changed: 55 additions & 8 deletions

File tree

library/difflib.po

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
#
66
# Translators:
77
# Zombie110year <[email protected]>, 2019
8-
# Freesand Leo <[email protected]>, 2019
98
# dannyvi <[email protected]>, 2019
109
# shiyu Peng <[email protected]>, 2019
1110
# ppcfish <[email protected]>, 2019
11+
# Freesand Leo <[email protected]>, 2019
1212
#
1313
#, fuzzy
1414
msgid ""
@@ -17,7 +17,7 @@ msgstr ""
1717
"Report-Msgid-Bugs-To: \n"
1818
"POT-Creation-Date: 2019-11-13 04:04+0000\n"
1919
"PO-Revision-Date: 2019-09-01 02:45+0000\n"
20-
"Last-Translator: ppcfish <ppcfish@gmail.com>, 2019\n"
20+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2019\n"
2121
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2222
"MIME-Version: 1.0\n"
2323
"Content-Type: text/plain; charset=UTF-8\n"
@@ -454,13 +454,17 @@ msgid ""
454454
" is blank or contains a single ``'#'``, otherwise it is not ignorable. Used"
455455
" as a default for parameter *linejunk* in :func:`ndiff` in older versions."
456456
msgstr ""
457+
"对于可忽略的行返回 ``True``。 如果 *line* 为空行或只包含单个 ``'#'`` 则 *line* 行就是可忽略的,否则就是不可忽略的。 "
458+
"此函数被用作较旧版本 :func:`ndiff` 中 *linejunk* 形参的默认值。"
457459

458460
#: ../../library/difflib.rst:344
459461
msgid ""
460462
"Return ``True`` for ignorable characters. The character *ch* is ignorable "
461463
"if *ch* is a space or tab, otherwise it is not ignorable. Used as a default"
462464
" for parameter *charjunk* in :func:`ndiff`."
463465
msgstr ""
466+
"对于可忽略的字符返回 ``True``。 字符 *ch* 如果为空格符或制表符则 *ch* 就是可忽略的,否则就是不可忽略的。 此函数被用作 "
467+
":func:`ndiff` 中 *charjunk* 形参的默认值。"
464468

465469
#: ../../library/difflib.rst:352
466470
msgid ""
@@ -495,6 +499,8 @@ msgid ""
495499
"equivalent to passing ``lambda x: False``; in other words, no elements are "
496500
"ignored. For example, pass::"
497501
msgstr ""
502+
"可选参数 *isjunk* 必须为 ``None`` (默认值) 或为接受一个序列元素并当且仅当其为应忽略的“垃圾”元素时返回真值的单参数函数。 传入 "
503+
"``None`` 作为 *isjunk* 的值就相当于传入 ``lambda x: False``;也就是说不忽略任何值。 例如,传入::"
498504

499505
#: ../../library/difflib.rst:374
500506
msgid ""

library/fractions.po

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Translators:
77
# Dingyuan Wang <[email protected]>, 2019
88
# Zhe He <[email protected]>, 2019
9+
# Freesand Leo <[email protected]>, 2019
910
#
1011
#, fuzzy
1112
msgid ""
@@ -14,7 +15,7 @@ msgstr ""
1415
"Report-Msgid-Bugs-To: \n"
1516
"POT-Creation-Date: 2019-01-01 10:14+0900\n"
1617
"PO-Revision-Date: 2019-09-01 02:45+0000\n"
17-
"Last-Translator: Zhe He <hezhe88@gmail.com>, 2019\n"
18+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2019\n"
1819
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1920
"MIME-Version: 1.0\n"
2021
"Content-Type: text/plain; charset=UTF-8\n"
@@ -171,4 +172,4 @@ msgstr ":mod:`numbers` 模块"
171172

172173
#: ../../library/fractions.rst:183
173174
msgid "The abstract base classes making up the numeric tower."
174-
msgstr ""
175+
msgstr "构成数字塔的所有抽象基类。"

library/functions.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,9 @@ msgid ""
486486
"Note that classes are callable (calling a class returns a new instance); "
487487
"instances are callable if their class has a :meth:`__call__` method."
488488
msgstr ""
489+
"如果参数 *object* 是可调用的就返回 :const:`True`,否则返回 :const:`False`。 如果返回 "
490+
"``True``,调用仍可能失败,但如果返回 ``False``,则调用 *object* 将肯定不会成功。 "
491+
"请注意类是可调用的(调用类将返回一个新的实例);如果实例所属的类有 :meth:`__call__` 则它就是可调用的。"
489492

490493
#: ../../library/functions.rst:186
491494
msgid ""
@@ -1288,6 +1291,10 @@ msgid ""
12881291
"an instance of any of the types. If *classinfo* is not a type or tuple of "
12891292
"types and such tuples, a :exc:`TypeError` exception is raised."
12901293
msgstr ""
1294+
"如果参数 *object* 是参数 *classinfo* 的实例或者是其 (直接、间接或 :term:`虚拟 <abstract base "
1295+
"class>`) 子类则返回 ``True``。 如果 *object* 不是给定类型的对象,函数将总是返回 ``False``。 如果 "
1296+
"*classinfo* 是类型对象元组(或由其他此类元组递归组成的元组),那么如果 *object* 是其中任何一个类型的实例就返回 ``True``。"
1297+
" 如果 *classinfo* 既不是类型,也不是类型元组或类型元组的元组,则将引发 :exc:`TypeError` 异常。"
12911298

12921299
#: ../../library/functions.rst:792
12931300
msgid ""
@@ -1297,6 +1304,9 @@ msgid ""
12971304
"entry in *classinfo* will be checked. In any other case, a :exc:`TypeError` "
12981305
"exception is raised."
12991306
msgstr ""
1307+
"如果 *class* 是 *classinfo* 的 (直接、间接或 :term:`虚拟 <abstract base class>`) 子类则返回 "
1308+
"``True``。 类会被视作其自身的子类。 *classinfo* 也以是类对象的元组,在此情况下 *classinfo* 中的每个条目都将被检查。 "
1309+
"在任何其他情况下,都将引发 :exc:`TypeError` 异常。"
13001310

13011311
#: ../../library/functions.rst:801
13021312
msgid ""

reference/datamodel.po

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2162,6 +2162,8 @@ msgid ""
21622162
"of strings that represents the names accessible on module. If present, this "
21632163
"function overrides the standard :func:`dir` search on a module."
21642164
msgstr ""
2165+
"``__dir__`` 函数应当不接受任何参数,并且返回一个表示模块中可访问名称的字符串序列。 此函数如果存在,将会重载一个模块中的标准 "
2166+
":func:`dir` 查找。"
21652167

21662168
#: ../../reference/datamodel.rst:1570
21672169
msgid ""
@@ -2511,7 +2513,7 @@ msgid ""
25112513
"If an iterator is used for *__slots__* then a descriptor is created for each"
25122514
" of the iterator's values. However, the *__slots__* attribute will be an "
25132515
"empty iterator."
2514-
msgstr ""
2516+
msgstr "如果为 *__slots__* 使用了一个迭代器,则会为迭代器的每个值创建描述器。 但是 *__slots__* 属性将为一个空迭代器。"
25152517

25162518
#: ../../reference/datamodel.rst:1793
25172519
msgid "Customizing class creation"
@@ -2970,6 +2972,22 @@ msgid ""
29702972
":meth:`__iter__` should iterate through the object's keys; for sequences, it"
29712973
" should iterate through the values."
29722974
msgstr ""
2975+
"可以定义下列方法来实现容器对象。 容器通常属于序列(如列表或元组)或映射(如字典),但也存在其他形式的容器。 "
2976+
"前几个方法集被用于模拟序列或是模拟映射;两者的不同之处在于序列允许的键应为整数 *k* 且 ``0 <= k < N`` 其中 *N* "
2977+
"是序列或定义指定区间的项的切片对象的长度。 此外还建议让映射提供 :meth:`keys`, :meth:`values`, "
2978+
":meth:`items`, :meth:`get`, :meth:`clear`, :meth:`setdefault`, :meth:`pop`, "
2979+
":meth:`popitem`, :meth:`!copy` 以及 :meth:`update` 等方法,它们的行为应与 Python "
2980+
"标准字典对象的相应方法类似。 此外 :mod:`collections.abc` 模块提供了一个 "
2981+
":class:`~collections.abc.MutableMapping` 抽象基类以便根据由 :meth:`__getitem__`, "
2982+
":meth:`__setitem__`, :meth:`__delitem__`, 和 :meth:`keys` 组成的基本集来创建所需的方法。 "
2983+
"可变序列还应像 Python 标准列表对象那样提供 :meth:`append`, :meth:`count`, :meth:`index`, "
2984+
":meth:`extend`, :meth:`insert`, :meth:`pop`, :meth:`remove`, :meth:`reverse`"
2985+
" 和 :meth:`sort` 等方法。 最后,序列类型还应通过定义下文描述的 :meth:`__add__`, :meth:`__radd__`, "
2986+
":meth:`__iadd__`, :meth:`__mul__`, :meth:`__rmul__` 和 :meth:`__imul__` "
2987+
"等方法来实现加法(指拼接)和乘法(指重复);它们不应定义其他数值运算符。 此外还建议映射和序列都实现 :meth:`__contains__` "
2988+
"方法以允许高效地使用 ``in`` 运算符;对于映射,``in`` 应该搜索映射的键;对于序列,则应搜索其中的值。 另外还建议映射和序列都实现 "
2989+
":meth:`__iter__` 方法以允许高效地迭代容器中的条目;对于映射,:meth:`__iter__` "
2990+
"应当迭代对象的键;对于序列,则应当迭代其中的值。"
29732991

29742992
#: ../../reference/datamodel.rst:2131
29752993
msgid ""
@@ -3118,6 +3136,8 @@ msgid ""
31183136
" objects can supply the following special method with a more efficient "
31193137
"implementation, which also does not require the object be iterable."
31203138
msgstr ""
3139+
"成员检测运算符 (:keyword:`in` 和 :keyword:`not in`) 通常以对容器进行逐个迭代的方式来实现。 "
3140+
"不过,容器对象可以提供以下特殊方法并采用更有效率的实现,这样也不要求对象必须为可迭代对象。"
31213141

31223142
#: ../../reference/datamodel.rst:2243
31233143
msgid ""

reference/import.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,9 @@ msgid ""
10681068
" cache file by checking the stored metadata in the cache file against the "
10691069
"source's metadata."
10701070
msgstr ""
1071+
"在 Python 从 ``.pyc`` 文件加载已缓存字节码之前,它会检查缓存是否由最新的 ``.py`` 源文件所生成。 默认情况下,Python "
1072+
"通过在所写入缓存文件中保存源文件的最新修改时间戳和大小来实现这一点。 "
1073+
"在运行时,导入系统会通过比对缓存文件中保存的元数据和源文件的元数据确定该缓存的有效性。"
10711074

10721075
#: ../../reference/import.rst:689
10731076
msgid ""
@@ -1357,6 +1360,9 @@ msgid ""
13571360
" module. ``find_spec()`` returns a fully populated spec for the module. "
13581361
"This spec will always have \"loader\" set (with one exception)."
13591362
msgstr ""
1363+
":meth:`~importlib.abc.PathEntryFinder.find_spec` "
1364+
"接受两个参数,即要导入模块的完整限定名称,以及(可选的)目标模块。 ``find_spec()`` 返回模块的完全填充好的规格说明。 "
1365+
"这个规格说明总是包含“加载器”集合(但有一个例外)。"
13601366

13611367
#: ../../reference/import.rst:858
13621368
msgid ""
@@ -1474,6 +1480,10 @@ msgid ""
14741480
"``None``. The latter indicates that the meta path search should continue, "
14751481
"while raising an exception terminates it immediately."
14761482
msgstr ""
1483+
"想要选择性地预先防止在元路径上从一个钩子导入某些模块(而不是完全禁用标准导入系统),只需直接从 "
1484+
":meth:`~importlib.abc.MetaPathFinder.find_spec` 引发 "
1485+
":exc:`ModuleNotFoundError` 而非返回 ``None`` 就足够了。 "
1486+
"返回后者表示元路径搜索应当继续,而引发异常则会立即终止搜索。"
14771487

14781488
#: ../../reference/import.rst:927
14791489
msgid "Package Relative Imports"

using/cmdline.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ msgstr "启用 :ref:`asyncio 调试模式 <asyncio-debug-mode>`。"
665665
msgid ""
666666
"Set the :attr:`~sys.flags.dev_mode` attribute of :attr:`sys.flags` to "
667667
"``True``."
668-
msgstr ""
668+
msgstr "将 :attr:`sys.flags` 的 :attr:`~sys.flags.dev_mode` 属性设为 ``True``。"
669669

670670
#: ../../using/cmdline.rst:454
671671
msgid ""
@@ -1049,11 +1049,11 @@ msgstr "``debug``: 在 :ref:`默认内存分配器 <default-memory-allocators>`
10491049

10501050
#: ../../using/cmdline.rst:748
10511051
msgid "``malloc_debug``: same as ``malloc`` but also install debug hooks."
1052-
msgstr ""
1052+
msgstr "``malloc_debug``: 与 ``malloc`` 相同但还会安装调试钩子。"
10531053

10541054
#: ../../using/cmdline.rst:749
10551055
msgid "``pymalloc_debug``: same as ``pymalloc`` but also install debug hooks."
1056-
msgstr ""
1056+
msgstr "``pymalloc_debug``: 与 ``pymalloc`` 相同但还会安装调试钩子。"
10571057

10581058
#: ../../using/cmdline.rst:751
10591059
msgid ""

0 commit comments

Comments
 (0)