@@ -22,7 +22,7 @@ msgid ""
22
22
msgstr ""
23
23
"Project-Id-Version : Python 3.12\n "
24
24
"Report-Msgid-Bugs-To : \n "
25
- "POT-Creation-Date : 2024-05-03 14:14 +0000\n "
25
+ "POT-Creation-Date : 2024-05-04 01:27 +0000\n "
26
26
"PO-Revision-Date : 2021-06-29 13:04+0000\n "
27
27
"Last-Translator : Freesand Leo <yuqinju@163.com>, 2024\n "
28
28
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -362,13 +362,16 @@ msgid ""
362
362
":c:func:`!PyErr_Display` will offer suggestions of similar variable names in"
363
363
" the function that the exception was raised from:"
364
364
msgstr ""
365
+ "当打印由解释器引发的 :exc:`NameError` 时,:c:func:`!PyErr_Display` 将提供引发异常的函数中类似变量名称的建议:"
365
366
366
367
#: ../../whatsnew/3.10.rst:391
367
368
msgid ""
368
369
"Notice this won't work if :c:func:`!PyErr_Display` is not called to display "
369
370
"the error, which can happen if some other custom error display function is "
370
371
"used. This is a common scenario in some REPLs like IPython."
371
372
msgstr ""
373
+ "请注意如果未调用 :c:func:`!PyErr_Display` 来显示错误则此特性将没有效果,这可能发生在使用了某些其他自定义错误显示函数的时候。 "
374
+ "这在某些 REPL 例如 IPython 上是一种常见的情况。"
372
375
373
376
#: ../../whatsnew/3.10.rst:397
374
377
msgid "PEP 626: Precise line numbers for debugging and other tools"
@@ -724,6 +727,9 @@ msgid ""
724
727
"omitting ``encoding`` option when opening UTF-8 files (e.g. JSON, YAML, "
725
728
"TOML, Markdown) is a very common bug. For example::"
726
729
msgstr ""
730
+ ":class:`~io.TextIOWrapper` 和 :func:`open` 的默认编码格式取决于具体的平台和语言区域设置。 由于 UTF-8 "
731
+ "被用于大多数 Unix 平台,当打开 UTF-8 文件(例如 JSON, YAML, TOML, Markdown)时省略 ``encoding`` "
732
+ "是一种相当常见的程序错误。 例如::"
727
733
728
734
#: ../../whatsnew/3.10.rst:702
729
735
msgid ""
@@ -868,7 +874,7 @@ msgstr ""
868
874
msgid ""
869
875
"Now the :mod:`typing` module has a special value :data:`~typing.TypeAlias` "
870
876
"which lets you declare type aliases more explicitly::"
871
- msgstr ""
877
+ msgstr "现在 :mod:`typing` 模块具有一个特殊值 :data:`~typing.TypeAlias` 可让你更明确地声明类型别名:: "
872
878
873
879
#: ../../whatsnew/3.10.rst:794
874
880
msgid "See :pep:`613` for more details."
@@ -889,6 +895,9 @@ msgid ""
889
895
"type checkers during type narrowing. For more information, please see "
890
896
":data:`~typing.TypeGuard`\\ 's documentation, and :pep:`647`."
891
897
msgstr ""
898
+ ":data:`~typing.TypeGuard` 已被添加到 :mod:`typing` "
899
+ "模块用来标注类型保护函数并改进在类型细化期间提供给静态类型检查器的信息。 要了解更多信息,请参阅 :data:`~typing.TypeGuard` "
900
+ "的文档以及 :pep:`647`。"
892
901
893
902
#: ../../whatsnew/3.10.rst:806
894
903
msgid ""
@@ -1233,7 +1242,7 @@ msgstr ""
1233
1242
msgid ""
1234
1243
"Add :class:`~contextlib.AsyncContextDecorator`, for supporting usage of "
1235
1244
"async context managers as decorators."
1236
- msgstr ""
1245
+ msgstr "添加了 :class:`~contextlib.AsyncContextDecorator`,以支持将异步上下文管理器用作装饰器。 "
1237
1246
1238
1247
#: ../../whatsnew/3.10.rst:979
1239
1248
msgid "curses"
@@ -1396,6 +1405,9 @@ msgid ""
1396
1405
":func:`repr` of ``module_name.member_name``. (Contributed by Ethan Furman in"
1397
1406
" :issue:`40066`.)"
1398
1407
msgstr ""
1408
+ ":class:`~enum.Enum` :func:`~object.__repr__` 现在返回 ``enum_name.member_name`` "
1409
+ "而 :func:`~object.__str__` 现在返回 ``member_name``。 作为模块常量提供的标准库枚举的 :func:`repr`"
1410
+ " 为 ``module_name.member_name``。 (由 Ethan Furman 在 :issue:`40066` 中贡献。)"
1399
1411
1400
1412
#: ../../whatsnew/3.10.rst:1097
1401
1413
msgid ""
@@ -1424,6 +1436,8 @@ msgid ""
1424
1436
"object when *mode* is \" r\" and file is compressed, like uncompressed files."
1425
1437
" (Contributed by Inada Naoki in :issue:`5758`.)"
1426
1438
msgstr ""
1439
+ "现在 :func:`fileinput.hook_compressed` 会在 *mode* 为 \" r\" 且文件被压缩时返回 "
1440
+ ":class:`~io.TextIOWrapper` 对象,与未压缩文件一样。 (由 Inada Naoki 在 :issue:`5758` 中贡献。)"
1427
1441
1428
1442
#: ../../whatsnew/3.10.rst:1112
1429
1443
msgid "faulthandler"
@@ -1610,13 +1624,19 @@ msgid ""
1610
1624
":ref:`importlib.metadata.EntryPoints <entry-points>` class. See the "
1611
1625
"Compatibility Note in the docs for more info on the deprecation and usage."
1612
1626
msgstr ""
1627
+ "现在 :ref:`importlib.metadata 入口点 <entry-points>` 通过新增的 "
1628
+ ":ref:`importlib.metadata.EntryPoints <entry-points>` 类为使用分组和名称选择入口点提供了更好的体验。"
1629
+ " 请参阅文档中的兼容性说明了解有关弃用和用法的更多信息。"
1613
1630
1614
1631
#: ../../whatsnew/3.10.rst:1208
1615
1632
msgid ""
1616
1633
"Added :ref:`importlib.metadata.packages_distributions() <package-"
1617
1634
"distributions>` for resolving top-level Python modules and packages to their"
1618
1635
" :ref:`importlib.metadata.Distribution <distributions>`."
1619
1636
msgstr ""
1637
+ "增加了 :ref:`importlib.metadata.packages_distributions() <package-"
1638
+ "distributions>` 用于将最高层级 Python 模块和包解析为其 "
1639
+ ":ref:`importlib.metadata.Distribution <distributions>`。"
1620
1640
1621
1641
#: ../../whatsnew/3.10.rst:1213
1622
1642
msgid "inspect"
0 commit comments