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

Skip to content

Commit ba6d326

Browse files
committed
[po] auto sync bot
1 parent af67b13 commit ba6d326

7 files changed

Lines changed: 38 additions & 30 deletions

File tree

faq/library.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,8 @@ msgid ""
424424
"instruction and therefore all the C implementation code reached from each "
425425
"instruction is therefore atomic from the point of view of a Python program."
426426
msgstr ""
427-
"Python VM 内部会使用 :term:`全局解释器锁` (GIL)来确保同一时间只有一个线程运行。通常 Python "
428-
"只会在字节码指令之间切换线程;切换的频率可以通过设置 :func:`sys.setswitchinterval` 指定。从 Python "
427+
"Python VM 内部会使用 :term:`global interpreter lock` (GIL)来确保同一时间只有一个线程运行。通常 "
428+
"Python 只会在字节码指令之间切换线程;切换的频率可以通过设置 :func:`sys.setswitchinterval` 指定。从 Python "
429429
"程序的角度来看,每一条字节码指令以及每一条指令对应的 C 代码实现都是原子的。"
430430

431431
#: ../../faq/library.rst:378
@@ -469,8 +469,8 @@ msgid ""
469469
"multi-threaded Python program effectively only uses one CPU, due to the "
470470
"insistence that (almost) all Python code can only run while the GIL is held."
471471
msgstr ""
472-
":term:`全局解释器锁` (GIL)通常被视为 Python 在高端多核服务器上开发时的阻力,因为(几乎)所有 Python 代码只有在获取到 "
473-
"GIL 时才能运行,所以多线程的 Python 程序只能有效地使用一个 CPU。"
472+
":term:`global interpreter lock` (GIL)通常被视为 Python 在高端多核服务器上开发时的阻力,因为(几乎)所有 "
473+
"Python 代码只有在获取到 GIL 时才能运行,所以多线程的 Python 程序只能有效地使用一个 CPU。"
474474

475475
#: ../../faq/library.rst:421
476476
msgid ""

glossary.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,8 +1396,8 @@ msgid ""
13961396
" first :term:`argument` (which is usually called ``self``). See "
13971397
":term:`function` and :term:`nested scope`."
13981398
msgstr ""
1399-
"在类内部定义的函数。如果作为该类的实例的一个属性来调用,方法将会获取实例对象作为其第一个 :term:`argument`通常命名为 "
1400-
"``self``。参见 :term:`function` 和 :term:`nested scope`。"
1399+
"在类内部定义的函数。如果作为该类的实例的一个属性来调用,方法将会获取实例对象作为其第一个 :term:`argument` (通常命名为 "
1400+
"``self``)。参见 :term:`function` 和 :term:`nested scope`。"
14011401

14021402
#: ../../glossary.rst:696
14031403
msgid "method resolution order"

library/functions.po

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,8 @@ msgid ""
527527
"The ``@classmethod`` form is a function :term:`decorator` -- see the "
528528
"description of function definitions in :ref:`function` for details."
529529
msgstr ""
530-
"``@classmethod`` 形式是一个函数 :term:`装饰器` - 参见 :ref:`function` 中关于函数定义的详细介绍。"
530+
"装饰器``@classmethod`` 形式是一个函数 :term:`decorator` -- 参见 :ref:`function` "
531+
"中关于函数定义的详细介绍。"
531532

532533
#: ../../library/functions.rst:216
533534
msgid ""
@@ -817,8 +818,8 @@ msgid ""
817818
":func:`enumerate` returns a tuple containing a count (from *start* which "
818819
"defaults to 0) and the values obtained from iterating over *iterable*."
819820
msgstr ""
820-
"返回一个枚举对象。*iterable* 必须是一个序列,或 :term:`迭代器`,或其他支持迭代的对象。 :func:`enumerate` "
821-
"返回的迭代器的 :meth:`~iterator.__next__` 方法返回一个元组,里面包含一个计数值(从 *start* 开始,默认为 "
821+
"返回一个枚举对象。*iterable* 必须是一个序列,或 :term:`iterator`,或其他支持迭代的对象。 :func:`enumerate`"
822+
" 返回的迭代器的 :meth:`~iterator.__next__` 方法返回一个元组,里面包含一个计数值(从 *start* 开始,默认为 "
822823
"0)和通过迭代 *iterable* 获得的值。"
823824

824825
#: ../../library/functions.rst:421
@@ -1301,7 +1302,7 @@ msgid ""
13011302
"*sentinel*, :exc:`StopIteration` will be raised, otherwise the value will be"
13021303
" returned."
13031304
msgstr ""
1304-
"返回一个 :term:`迭代器` 对象。根据是否存在第二个实参,第一个实参的解释是非常不同的。如果没有第二个实参,*object* "
1305+
"返回一个 :term:`iterator` 对象。根据是否存在第二个实参,第一个实参的解释是非常不同的。如果没有第二个实参,*object* "
13051306
"必须是支持迭代协议(有 :meth:`__iter__` 方法)的集合对象,或必须支持序列协议(有 :meth:`__getitem__` "
13061307
"方法,且数字参数从 ``0`` 开始)。如果它不支持这些协议,会触发 :exc:`TypeError`。如果有第二个实参 *sentinel*,那么 "
13071308
"*object* 必须是可调用的对象。这种情况下生成的迭代器,每次迭代调用它的 :meth:`~iterator.__next__` "
@@ -1375,8 +1376,8 @@ msgid ""
13751376
"The largest item in the iterable is returned. If two or more positional "
13761377
"arguments are provided, the largest of the positional arguments is returned."
13771378
msgstr ""
1378-
"如果只提供了一个 positional 实参,它必须是非空 :term:`可迭代对象`,返回可迭代对象中最大的元素;如果提供了两个及以上的 "
1379-
"positional 实参,则返回最大的 positional 实参。"
1379+
"如果只提供了一个位置参数,它必须是非空 "
1380+
":term:`iterable`,返回可迭代对象中最大的元素;如果提供了两个及以上的位置参数,则返回最大的位置参数。"
13801381

13811382
#: ../../library/functions.rst:867 ../../library/functions.rst:901
13821383
msgid ""
@@ -1422,8 +1423,7 @@ msgid ""
14221423
"arguments are provided, the smallest of the positional arguments is "
14231424
"returned."
14241425
msgstr ""
1425-
"如果只提供了一个 positional 实参,它必须是 :term:`可迭代对象`,返回可迭代对象中最小的元素;如果提供了两个及以上的 "
1426-
"positional 实参,则返回最小的 positional 实参。"
1426+
"如果只提供了一个位置参数,它必须是 :term:`iterable`,返回可迭代对象中最小的元素;如果提供了两个及以上的位置参数,则返回最小的位置参数。"
14271427

14281428
#: ../../library/functions.rst:907
14291429
msgid ""
@@ -1480,7 +1480,7 @@ msgstr "如果要将整数转换为八进制字符串,并可选择有无“0o
14801480
msgid ""
14811481
"Open *file* and return a corresponding :term:`file object`. If the file "
14821482
"cannot be opened, an :exc:`OSError` is raised."
1483-
msgstr "打开 *file* 并返回对应的 :term:`文件对象`。如果该文件不能打开,则触发 :exc:`OSError`。"
1483+
msgstr "打开 *file* 并返回对应的 :term:`file object`。如果该文件不能打开,则触发 :exc:`OSError`。"
14841484

14851485
#: ../../library/functions.rst:967
14861486
msgid ""
@@ -1583,7 +1583,7 @@ msgstr "``'U'``"
15831583

15841584
#: ../../library/functions.rst:999
15851585
msgid ":term:`universal newlines` mode (deprecated)"
1586-
msgstr ":term:`通用换行` 模式(已弃用)"
1586+
msgstr ":term:`universal newlines` 模式(已弃用)"
15871587

15881588
#: ../../library/functions.rst:1002
15891589
msgid ""

library/itertools.po

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ msgid ""
3333
"This module implements a number of :term:`iterator` building blocks inspired"
3434
" by constructs from APL, Haskell, and SML. Each has been recast in a form "
3535
"suitable for Python."
36-
msgstr "本模块实现一系列 :term:`迭代器` ,这些迭代器受到APL,Haskell和SML的启发。为了适用于Python,它们都被重新写过。"
36+
msgstr ""
37+
"本模块实现一系列 :term:`iterator` ,这些迭代器受到APL,Haskell和SML的启发。为了适用于Python,它们都被重新写过。"
3738

3839
#: ../../library/itertools.rst:20
3940
msgid ""
@@ -828,8 +829,8 @@ msgid ""
828829
"preferring \"vectorized\" building blocks over the use of for-loops and "
829830
":term:`generator`\\s which incur interpreter overhead."
830831
msgstr ""
831-
"扩展的工具提供了与底层工具集相同的高性能。保持了超棒的内存利用率,因为一次只处理一个元素,而不是将整个可迭代对象加载到内存。代码量保持得很小,以函数式风格将这些工具连接在一起,有助于消除临时变量。速度依然很快,因为倾向于使用“矢量化”构件来取代解释器开销大的for循环和"
832-
" :term:`生成器` 。"
832+
"扩展的工具提供了与底层工具集相同的高性能。保持了超棒的内存利用率,因为一次只处理一个元素,而不是将整个可迭代对象加载到内存。代码量保持得很小,以函数式风格将这些工具连接在一起,有助于消除临时变量。速度依然很快,因为倾向于使用“矢量化”构件来取代解释器开销大的"
833+
" for 循环和 :term:`generator` 。"
833834

834835
#: ../../library/itertools.rst:899
835836
msgid ""

library/weakref.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ msgid ""
5252
"the weak reference may return the object even if there are no strong "
5353
"references to it."
5454
msgstr ""
55-
"对对象的弱引用不能保证对象存活:当对像的引用只剩弱引用时, :term:`垃圾回收` "
55+
"对对象的弱引用不能保证对象存活:当对像的引用只剩弱引用时, :term:`garbage collection` "
5656
"可以销毁引用并将其内存重用于其他内容。但是,在实际销毁对象之前,即使没有强引用,弱引用也一直能返回该对象。"
5757

5858
#: ../../library/weakref.rst:31

reference/datamodel.po

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ msgid ""
561561
" dictionary key."
562562
msgstr ""
563563
"此类对象表示不可变集合。它们可通过内置的 :func:`frozenset` 构造器创建。由于 frozenset 对象不可变且 "
564-
":term:`可哈希`,它可以被用作另一个集合的元素或是字典的键。"
564+
":term:`hashable`,它可以被用作另一个集合的元素或是字典的键。"
565565

566566
#: ../../reference/datamodel.rst:432
567567
msgid "Mappings"
@@ -681,7 +681,7 @@ msgstr ":attr:`~definition.\\ __qualname__`"
681681

682682
#: ../../reference/datamodel.rst:483
683683
msgid "The function's :term:`qualified name`"
684-
msgstr "该函数的 :term:`限定名称`"
684+
msgstr "该函数的 :term:`qualified name`"
685685

686686
#: ../../reference/datamodel.rst:488
687687
msgid ":attr:`__module__`"
@@ -929,9 +929,9 @@ msgid ""
929929
"well as :keyword:`async with` and :keyword:`async for` statements. See also "
930930
"the :ref:`coroutine-objects` section."
931931
msgstr ""
932-
"使用 :keyword:`async def` 来定义的函数或方法就被称为 :dfn:`协程函数`。这样的函数在被调用时会返回一个 :term:`协程`"
933-
" 对象。它可能包含 :keyword:`await` 表达式以及 :keyword:`async with` 和 :keyword:`async "
934-
"for` 语句。详情可参见 :ref:`coroutine-objects` 一节。"
932+
"使用 :keyword:`async def` 来定义的函数或方法就被称为 :dfn:`协程函数`。这样的函数在被调用时会返回一个 "
933+
":term:`coroutine` 对象。它可能包含 :keyword:`await` 表达式以及 :keyword:`async with` 和 "
934+
":keyword:`async for` 语句。详情可参见 :ref:`coroutine-objects` 一节。"
935935

936936
#: ../../reference/datamodel.rst:655
937937
msgid "Asynchronous generator functions"
@@ -957,9 +957,10 @@ msgid ""
957957
":exc:`StopAsyncIteration` exception is raised and the asynchronous iterator "
958958
"will have reached the end of the set of values to be yielded."
959959
msgstr ""
960-
"调用异步迭代器的 :meth:`aiterator.__anext__` 方法将会返回一个 :term:`可等待对象`,此对象会在被等待时执行直到使用 "
961-
":keyword:`yield` 表达式输出一个值。当函数执行时到空的 :keyword:`return` 语句或是最后一条语句时,将会引发 "
962-
":exc:`StopAsyncIteration` 异常,异步迭代器也会到达要输出的值集合的末尾。"
960+
"调用异步迭代器的 :meth:`aiterator.__anext__` 方法将会返回一个 "
961+
":term:`awaitable`,此对象会在被等待时执行直到使用 :keyword:`yield` 表达式输出一个值。当函数执行时到空的 "
962+
":keyword:`return` 语句或是最后一条语句时,将会引发 :exc:`StopAsyncIteration` "
963+
"异常,异步迭代器也会到达要输出的值集合的末尾。"
963964

964965
#: ../../reference/datamodel.rst:670
965966
msgid "Built-in functions"
@@ -3230,6 +3231,12 @@ msgid ""
32303231
"(see :ref:`faq-augmented-assignment-tuple-error`), but this behavior is in "
32313232
"fact part of the data model."
32323233
msgstr ""
3234+
"调用这些方法来实现扩展算术赋值 (``+=``, ``-=``, ``*=``, ``@=``, ``/=``, ``//=``, ``%=``, "
3235+
"``**=``, ``<<=``, ``>>=``, ``&=``, ``^=``, ``|=``)。这些方法应该尝试进行自身操作 (修改 "
3236+
"*self*) 并返回结果 (结果应该但并非必须为 *self*)。如果某个方法未被定义,相应的扩展算术赋值将回退到普通方法。例如,如果 *x* 是具有"
3237+
" :meth:`__iadd__` 方法的类的一个实例,则 ``x += y`` 就等价于 ``x = x.__iadd__(y)``。否则就如 ``x"
3238+
" + y`` 的求值一样选择 ``x.__add__(y)`` 和 ``y.__radd__(x)``。在某些情况下,扩展赋值可导致未预期的错误 (参见"
3239+
" :ref:`faq-augmented-assignment-tuple-error`),但此行为实际上是数据模型的一个组成部分。"
32333240

32343241
#: ../../reference/datamodel.rst:2368
32353242
msgid ""

tutorial/datastructures.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ msgid ""
320320
"data types may be added. There is also another standard sequence data type:"
321321
" the *tuple*."
322322
msgstr ""
323-
"我们看到列表和字符串有很多共同特性,例如索引和切片操作。他们是 *序列* 数据类型(参见 "
324-
":ref:`typeseeq`)中的两种。随着Python语言的发展,其他的序列类型也会被加入其中。这里介绍另一种标准序列类型*元组*。"
323+
"我们看到列表和字符串有很多共同特性,例如索引和切片操作。他们是 *序列* 数据类型(参见 :ref:`typesseq`)中的两种。随着 Python "
324+
"语言的发展,其他的序列类型也会被加入其中。这里介绍另一种标准序列类型: *元组*。"
325325

326326
#: ../../tutorial/datastructures.rst:372
327327
msgid ""

0 commit comments

Comments
 (0)