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

Skip to content

Commit 0839a3c

Browse files
committed
[po] auto sync bot
1 parent dc33bf2 commit 0839a3c

2 files changed

Lines changed: 28 additions & 6 deletions

File tree

glossary.po

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# ryohei <[email protected]>, 2017
88
# Shengjing Zhu <[email protected]>, 2018
99
# Fred <[email protected]>, 2018
10-
# Junkai Shao <[email protected]>, 2018
1110
# Freesand Leo <[email protected]>, 2018
11+
# Junkai Shao <[email protected]>, 2018
1212
#
1313
#, fuzzy
1414
msgid ""
@@ -17,7 +17,7 @@ msgstr ""
1717
"Report-Msgid-Bugs-To: \n"
1818
"POT-Creation-Date: 2018-10-27 09:37+0900\n"
1919
"PO-Revision-Date: 2017-02-16 17:32+0000\n"
20-
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2018\n"
20+
"Last-Translator: Junkai Shao <skaifun.dev@gmail.com>, 2018\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"
@@ -845,6 +845,8 @@ msgid ""
845845
"that is able to detect and break reference cycles. The garbage collector "
846846
"can be controlled using the :mod:`gc` module."
847847
msgstr ""
848+
"释放不再被使用的内存空间的过程。Python 是通过引用计数和一个能够检测和打破循环引用的循环垃圾回收器来执行垃圾回收的。可以使用 :mod:`gc` "
849+
"模块来控制垃圾回收器。"
848850

849851
#: ../../glossary.rst:423
850852
msgid "generator"
@@ -857,21 +859,23 @@ msgid ""
857859
"producing a series of values usable in a for-loop or that can be retrieved "
858860
"one at a time with the :func:`next` function."
859861
msgstr ""
862+
"返回一个 :term:`generator iterator` 的函数。它看起来很像普通函数,不同点在于其包含 :keyword:`yield` "
863+
"表达式以便产生一系列值供给 for-循环使用或是通过 :func:`next` 函数逐一获取。"
860864

861865
#: ../../glossary.rst:430
862866
msgid ""
863867
"Usually refers to a generator function, but may refer to a *generator "
864868
"iterator* in some contexts. In cases where the intended meaning isn't "
865869
"clear, using the full terms avoids ambiguity."
866-
msgstr ""
870+
msgstr "通常是指生成器函数,但在某些情况下也可能是指 *生成器迭代器*。如果需要清楚表达具体含义,请使用全称以避免歧义。"
867871

868872
#: ../../glossary.rst:433
869873
msgid "generator iterator"
870874
msgstr "generator iterator -- 生成器迭代器"
871875

872876
#: ../../glossary.rst:435
873877
msgid "An object created by a :term:`generator` function."
874-
msgstr ""
878+
msgstr ":term:`generator` 函数所创建的对象。"
875879

876880
#: ../../glossary.rst:437
877881
msgid ""
@@ -880,6 +884,8 @@ msgid ""
880884
"statements). When the *generator iterator* resumes, it picks up where it "
881885
"left off (in contrast to functions which start fresh on every invocation)."
882886
msgstr ""
887+
"每个 :keyword:`yield` 会临时暂停处理,记住当前位置执行状态(包括局部变量和挂起的 try 语句)。当该 *生成器迭代器* "
888+
"恢复时,它会从离开位置继续执行(这与每次调用都从新开始的普通函数差别很大)。"
883889

884890
#: ../../glossary.rst:444
885891
msgid "generator expression"
@@ -892,6 +898,8 @@ msgid ""
892898
" an optional :keyword:`if` expression. The combined expression generates "
893899
"values for an enclosing function::"
894900
msgstr ""
901+
"返回一个迭代器的表达式。它看起来很像普通表达式后面带有定义了一个循环变量、范围以及一个可选的 :keyword:`if` 表达式的 "
902+
":keyword:`for` 表达式。以下复合表达式为外层函数生成一系列值::"
895903

896904
#: ../../glossary.rst:453
897905
msgid "generic function"
@@ -902,21 +910,23 @@ msgid ""
902910
"A function composed of multiple functions implementing the same operation "
903911
"for different types. Which implementation should be used during a call is "
904912
"determined by the dispatch algorithm."
905-
msgstr ""
913+
msgstr "为不同的类型实现相同操作的多个函数所组成的函数。在调用时会由调度算法来确定应该使用哪个实现。"
906914

907915
#: ../../glossary.rst:459
908916
msgid ""
909917
"See also the :term:`single dispatch` glossary entry, the "
910918
":func:`functools.singledispatch` decorator, and :pep:`443`."
911919
msgstr ""
920+
"另请参见 :term:`single dispatch` 术语表条目、:func:`functools.singledispatch` 装饰器以及 "
921+
":pep:`443`。"
912922

913923
#: ../../glossary.rst:462
914924
msgid "GIL"
915925
msgstr "GIL"
916926

917927
#: ../../glossary.rst:464
918928
msgid "See :term:`global interpreter lock`."
919-
msgstr ""
929+
msgstr "参见 :term:`global interpreter lock`。"
920930

921931
#: ../../glossary.rst:465
922932
msgid "global interpreter lock"
@@ -932,6 +942,9 @@ msgid ""
932942
"multi-threaded, at the expense of much of the parallelism afforded by multi-"
933943
"processor machines."
934944
msgstr ""
945+
":term:`CPython` 解析器所采用的一种机制,它确保同一时刻只有一个线程在执行 Python "
946+
":term:`bytecode`。此机制通过设置对象模型 (包括 :class:`dict` 等重要内置类型) 针对并发访问的隐式安全简化了 "
947+
"CPython 实现。给整个解释器加锁使得解释器多线程运行更方便,其代价则是牺牲了在多处理器上的并行性。"
935948

936949
#: ../../glossary.rst:476
937950
msgid ""
@@ -1490,6 +1503,8 @@ msgid ""
14901503
"an :term:`argument` (or in some cases, arguments) that the function can "
14911504
"accept. There are five kinds of parameter:"
14921505
msgstr ""
1506+
":term:`function` (或方法)定义中的命名实体,它指定函数可以接受的一个 :term:`argument` "
1507+
"(或在某些情况下,多个实参)。有五种形参:"
14931508

14941509
#: ../../glossary.rst:786
14951510
msgid ""
@@ -1498,6 +1513,8 @@ msgid ""
14981513
"<argument>`. This is the default kind of parameter, for example *foo* and "
14991514
"*bar* in the following::"
15001515
msgstr ""
1516+
":dfn:`positional-or-keyword`: 指定可以按 :term:`positionally <argument>` 传递也可以作为 "
1517+
":term:`keyword argument <argument>` 传递的实参,这是默认的参数类型,例如下面的 *foo* 和 *bar* ::"
15011518

15021519
#: ../../glossary.rst:795
15031520
msgid ""
@@ -1506,6 +1523,8 @@ msgid ""
15061523
"However, some built-in functions have positional-only parameters (e.g. "
15071524
":func:`abs`)."
15081525
msgstr ""
1526+
":dfn:`positional-only`: 指定只能通过位置传递的参数。Python中没有定义仅位置参数的语法。但是一些内置函数有仅位置参数(比如:"
1527+
" :func:`abs`)。"
15091528

15101529
#: ../../glossary.rst:802
15111530
msgid ""

tutorial/controlflow.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ msgid ""
272272
"assigned a value within a function (unless named in a :keyword:`global` "
273273
"statement), although they may be referenced."
274274
msgstr ""
275+
"函数的 *执行* "
276+
"会引入一个用于函数局部变量的新符号表。更确切地说,函数中的所有变量赋值都将值存储在本地符号表中;而变量引用首先在本地符号表中查找,然后在封闭函数的本地符号表中查找,然后在全局符号表中查找,最后在内置符号表中查找。所以全局变量不能直接在函数中赋值(除非使用"
277+
" :keyword:`global` 命名),尽管可以引用它们。"
275278

276279
#: ../../tutorial/controlflow.rst:286
277280
msgid ""

0 commit comments

Comments
 (0)