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

Skip to content

Commit d27e276

Browse files
[po] auto sync
1 parent 8f7ce2e commit d27e276

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

reference/expressions.po

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ msgid ""
266266
"To ensure the comprehension always results in a container of the appropriate"
267267
" type, ``yield`` and ``yield from`` expressions are prohibited in the "
268268
"implicitly nested scope."
269-
msgstr ""
269+
msgstr "为了确保推导式得出的结果总是一个类型正确的容器,在隐式嵌套作用域内禁止使用 ``yield`` 和 ``yield from`` 表达式。"
270270

271271
#: ../../reference/expressions.rst:211
272272
msgid ""
@@ -416,6 +416,8 @@ msgid ""
416416
" key. Starting with 3.8, the key is evaluated before the value, as proposed"
417417
" by :pep:`572`."
418418
msgstr ""
419+
"在 Python 3.8 之前的字典推导式中,并没有定义好键和值的求值顺序。 在 CPython 中,值会先于键被求值。 根据 :pep:`572` "
420+
"的提议,从 3.8 开始,键会先于值被求值。"
419421

420422
#: ../../reference/expressions.rst:349
421423
msgid "Generator expressions"
@@ -463,7 +465,7 @@ msgid ""
463465
"To avoid interfering with the expected operation of the generator expression"
464466
" itself, ``yield`` and ``yield from`` expressions are prohibited in the "
465467
"implicitly defined generator."
466-
msgstr ""
468+
msgstr "为了避免干扰到生成器表达式本身的预期操作,禁止在隐式定义的生成器中使用 ``yield`` 和 ``yield from`` 表达式。"
467469

468470
#: ../../reference/expressions.rst:383
469471
msgid ""
@@ -512,13 +514,13 @@ msgid ""
512514
"Due to their side effects on the containing scope, ``yield`` expressions are"
513515
" not permitted as part of the implicitly defined scopes used to implement "
514516
"comprehensions and generator expressions."
515-
msgstr ""
517+
msgstr "由于它们会对外层作用域造成附带影响,``yield`` 表达式不被允许作为用于实现推导式和生成器表达式的隐式定义作用域的一部分。"
516518

517519
#: ../../reference/expressions.rst:433
518520
msgid ""
519521
"Yield expressions prohibited in the implicitly nested scopes used to "
520522
"implement comprehensions and generator expressions."
521-
msgstr ""
523+
msgstr "禁止在实现推导式和生成器表达式的隐式嵌套作用域中使用 yield 表达式。"
522524

523525
#: ../../reference/expressions.rst:437
524526
msgid ""
@@ -1731,6 +1733,8 @@ msgid ""
17311733
"equal to themselves. That lets them bypass equality tests for identical "
17321734
"objects to improve performance and to maintain their internal invariants."
17331735
msgstr ""
1736+
"序列比较是按字典序对相应元素进行逐个比较。 内置容器通常设定同一对象与其自身是相等的。 "
1737+
"这使得它们能跳过同一对象的相等性检测以提升运行效率并保持它们的内部不变性。"
17341738

17351739
#: ../../reference/expressions.rst:1452
17361740
msgid ""

0 commit comments

Comments
 (0)