8000 [po] auto sync · python/python-docs-zh-cn@e8b7d1a · GitHub
[go: up one dir, main page]

Skip to content

Commit e8b7d1a

Browse files
[po] auto sync
1 parent 66f5170 commit e8b7d1a

File tree

4 files changed

+45
-4
lines changed

4 files changed

+45
-4
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "90.71%", "updated_at": "2024-02-19T08:09:37Z"}
1+
{"translation": "90.74%", "updated_at": "2024-02-19T09:09:12Z"}

whatsnew/2.7.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3334,19 +3334,23 @@ msgid ""
33343334
"available, the autotools-based build system no longer attempts to implicitly"
33353335
" recompile generated files based on file modification times."
33363336
msgstr ""
3337+
"为了简化交叉编译,并确保 CPython 能够可靠地编译而不需要已存在可用的 Python 版本,基于 autotools "
3338+
"的构建系统将不再尝试根据文件修改时间隐式地重新编译已生成的文件。"
33373339

33383340
#: ../../whatsnew/2.7.rst:2765
33393341
msgid ""
33403342
"Instead, a new ``make regen-all`` command has been added to force "
33413343
"regeneration of these files when desired (e.g. after an initial version of "
33423344
"Python has already been built based on the pregenerated versions)."
33433345
msgstr ""
3346+
"取而代之的是,新增了一个 ``make regen-all`` 命令以便在需要时强制重新生成这些文件(例如在基于预生成版本构建了 Python "
3347+
"的初始版本之后)。"
33443348

33453349
#: ../../whatsnew/2.7.rst:2769
33463350
msgid ""
33473351
"More selective regeneration targets are also defined - see "
33483352
":source:`Makefile.pre.in` for details."
3349-
msgstr ""
3353+
msgstr "还定义了其他一些更具选择性的重生成目标 —— 详情参见 :source:`Makefile.pre.in`。"
33503354

33513355
#: ../../whatsnew/2.7.rst:2772 ../../whatsnew/2.7.rst:2785
33523356
msgid "(Contributed by Victor Stinner in :issue:`23404`.)"

whatsnew/3.5.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3443,19 +3443,23 @@ msgid ""
34433443
"available, the autotools-based build system no longer attempts to implicitly"
34443444
" recompile generated files based on file modification times."
34453445
msgstr ""
3446+
"为了简化交叉编译,并确保 CPython 能够可靠地编译而不需要已存在可用的 Python 版本,基于 autotools "
3447+
"的构建系统将不再尝试根据文件修改时间隐式地重新编译已生成的文件。"
34463448

34473449
#: ../../whatsnew/3.5.rst:2551
34483450
msgid ""
34493451
"Instead, a new ``make regen-all`` command has been added to force "
34503452
"regeneration of these files when desired (e.g. after an initial version of "
34513453
"Python has already been built based on the pregenerated versions)."
34523454
msgstr ""
3455+
"取而代之的是,新增了一个 ``make regen-all`` 命令以便在需要时强制重新生成这些文件(例如在基于预生成版本构建了 Python "
3456+
"的初始版本之后)。"
34533457

34543458
#: ../../whatsnew/3.5.rst:2555
34553459
msgid ""
34563460
"More selective regeneration targets are also defined - see "
34573461
":source:`Makefile.pre.in` for details."
3458-
msgstr ""
3462+
msgstr "还定义了其他一些更具选择性的重生成目标 —— 详情参见 :source:`Makefile.pre.in`。"
34593463

34603464
#: ../../whatsnew/3.5.rst:2558 ../../whatsnew/3.5.rst:2571
34613465
msgid "(Contributed by Victor Stinner in :issue:`23404`.)"

whatsnew/3.6.po

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3651,6 +3651,9 @@ msgid ""
36513651
"the position of the reference. (Contributed by SilentGhost, Serhiy Storchaka"
36523652
" in :issue:`25953`.)"
36533653
msgstr ""
3654+
"现在 :func:`re.sub` 即使未在字符串中找到模式也会针对替换模板中无效的数字分组引用引发错误。 "
3655+
"针对无效分组引用的错误消息现在将包括分组索引和引用位置。 (由 SilentGhost, Serhiy Storchaka 在 "
3656+
":issue:`25953` 中贡献。)"
36543657

36553658
#: ../../whatsnew/3.6.rst:2305
36563659
msgid ""
@@ -3661,6 +3664,11 @@ msgid ""
36613664
"ZipFile created with mode ``'r'`` will raise a :exc:`ValueError`. "
36623665
"Previously, a :exc:`RuntimeError` was raised in those scenarios."
36633666
msgstr ""
3667+
"现在 :class:`zipfile.ZipFile` 对于无法识别的压缩值将引发 :exc:`NotImplementedError`。 "
3668+
"在之前版本中是引发简单的 :exc:`RuntimeError`。 此外,在已关闭的 ZipFile 上调用 "
3669+
":class:`~zipfile.ZipFile` 或者在使用 ``'r'`` 模式创建的 ZipFile 上调用 "
3670+
":meth:`~zipfile.ZipFile.write` 将引发 :exc:`ValueError`。 在之前版本中,对于这些场景是引发 "
3671+
":exc:`RuntimeError`。"
36643672

36653673
#: ../../whatsnew/3.6.rst:2312
36663674
msgid ""
@@ -3671,6 +3679,9 @@ msgid ""
36713679
" :exc:`DeprecationWarning` in Python 3.6 and a :exc:`RuntimeError` in Python"
36723680
" 3.8."
36733681
msgstr ""
3682+
"当自定义元类与零参数的 :func:`super` 或从方法到隐式的 ``__class__`` 闭包变量的直接引用相结合时,隐式的 "
3683+
"``__classcell__`` 命名空间条目现在必须传到 ``type.__new__`` 进行初始化。 如果不这样做那么在 Python 3.6 "
3684+
"中将会导致 :exc:`DeprecationWarning` 而在 Python 3.8 中将会导致 :exc:`RuntimeError`。"
36743685

36753686
#: ../../whatsnew/3.6.rst:2319
36763687
msgid ""
@@ -3684,6 +3695,11 @@ msgid ""
36843695
"plugins to the default import system shouldn't need to make any changes, as "
36853696
"the default import system will raise the new subclass when appropriate."
36863697
msgstr ""
3698+
"随着 :exc:`ModuleNotFoundError` "
3699+
"的引入,导入系统的消费方可能会开始期望导入系统的替代品在能适当的时候引发更具体的异常,而非不够具体的 :exc:`ImportError`。 "
3700+
"为了在未来向此类消费方提供兼容性,完全取代 :func:`__import__` "
3701+
"的替代导入系统的实现者需要更新其实现以便在完全未找到模块时引发新的子类。 "
3702+
"兼容默认导入系统的插件的实现者不需要做任何更改,因为默认导入系统会在适当的时候引发新的子类。"
36873703

36883704
#: ../../whatsnew/3.6.rst:2331
36893705
msgid "Changes in the C API"
@@ -3734,13 +3750,18 @@ msgid ""
37343750
"(Contributed by Eric Smith in :issue:`25483` and Serhiy Storchaka in "
37353751
":issue:`27078`.)"
37363752
msgstr ""
3753+
"新增 :opcode:`FORMAT_VALUE` 和 :opcode:`BUILD_STRING` 操作码作为 :ref:`格式化字符串字面值 "
3754+
"<whatsnew36-pep498>` 实现的组成部分。 (由 Eric Smith 在 :issue:`25483` 以及 Serhiy "
3755+
"Storchaka 在 :issue:`27078` 中贡献。)"
37373756

37383757
#: ../../whatsnew/3.6.rst:2357
37393758
msgid ""
37403759
"The new :opcode:`BUILD_CONST_KEY_MAP` opcode to optimize the creation of "
37413760
"dictionaries with constant keys. (Contributed by Serhiy Storchaka in "
37423761
":issue:`27140`.)"
37433762
msgstr ""
3763+
"新增的 :opcode:`BUILD_CONST_KEY_MAP` 操作码用于优化具有常量键的字典的创建。 (由 Serhiy Storchaka 在 "
3764+
":issue:`27140` 中创建。)"
37443765

37453766
#: ../../whatsnew/3.6.rst:2361
37463767
msgid ""
@@ -3753,13 +3774,21 @@ msgid ""
37533774
"``MAKE_CLOSURE`` opcodes have been removed. (Contributed by Demur Rumed in "
37543775
":issue:`27095`, and Serhiy Storchaka in :issue:`27213`, :issue:`28257`.)"
37553776
msgstr ""
3777+
"函数调用操作码进行了大幅改进以提升效率并简化实现。 :opcode:`MAKE_FUNCTION`, :opcode:`CALL_FUNCTION`, "
3778+
":opcode:`CALL_FUNCTION_KW` 和 :opcode:`BUILD_MAP_UNPACK_WITH_CALL` "
3779+
"操作码已被修改,新增了 :opcode:`CALL_FUNCTION_EX` 和 "
3780+
":opcode:`BUILD_TUPLE_UNPACK_WITH_CALL`,并移除了 ``CALL_FUNCTION_VAR``, "
3781+
"``CALL_FUNCTION_VAR_KW`` 和 ``MAKE_CLOSURE`` 操作码。 (由 Demur Rumed 在 "
3782+
":issue:`27095` 中,以及 Serhiy Storchaka 在 :issue:`27213`, :issue:`28257` 中贡献。)"
37563783

37573784
#: ../../whatsnew/3.6.rst:2372
37583785
msgid ""
37593786
"The new :opcode:`SETUP_ANNOTATIONS` and :opcode:`STORE_ANNOTATION` opcodes "
37603787
"have been added to support the new :term:`variable annotation` syntax. "
37613788
"(Contributed by Ivan Levkivskyi in :issue:`27985`.)"
37623789
msgstr ""
3790+
"新增了 :opcode:`SETUP_ANNOTATIONS` 和 :opcode:`STORE_ANNOTATION` 操作码以支持新的 "
3791+
":term:`variable annotation` 语法。 (由 Ivan Levkivskyi 在 :issue:`27985` 中贡献。)"
37633792

37643793
#: ../../whatsnew/3.6.rst:2378
37653794
msgid "Notable changes in Python 3.6.2"
@@ -3776,19 +3805,23 @@ msgid ""
37763805
"available, the autotools-based build system no longer attempts to implicitly"
37773806
" recompile generated files based on file modification times."
37783807
msgstr ""
3808+
"为了简化交叉编译,并确保 CPython 能够可靠地编译而不需要已存在可用的 Python 版本,基于 autotools "
3809+
"的构建系统将不再尝试根据文件修改时间隐式地重新编译已生成的文件。"
37793810

37803811
#: ../../whatsnew/3.6.rst:2388
37813812
msgid ""
37823813
"Instead, a new ``make regen-all`` command has been added to force "
37833814
"regeneration of these files when desired (e.g. after an initial version of "
37843815
"Python has already been built based on the pregenerated versions)."
37853816
msgstr ""
3817+
"取而代之的是,新增了一个 ``make regen-all`` 命令以便在需要时强制重新生成这些文件(例如在基于预生成版本构建了 Python "
3818+
"的初始版本之后)。"
37863819

37873820
#: ../../whatsnew/3.6.rst:2392
37883821
msgid ""
37893822
"More selective regeneration targets are also defined - see "
37903823
":source:`Makefile.pre.in` for details."
3791-
msgstr ""
3824+
msgstr "还定义了其他一些更具选择性的重生成目标 —— 详情参见 :source:`Makefile.pre.in`。"
37923825

37933826
#: ../../whatsnew/3.6.rst:2395 ../../whatsnew/3.6.rst:2408
37943827
msgid "(Contributed by Victor Stinner in :issue:`23404`.)"

0 commit comments

Comments
 (0)
0