@@ -1460,6 +1460,10 @@ msgid ""
1460
1460
"equivalent to ``compile(data, path, 'exec', dont_inherit=True)``. "
1461
1461
"(Contributed by Eric Snow and Brett Cannon in :issue:`15627`.)"
1462
1462
msgstr ""
1463
+ ":class:`~importlib.abc.InspectLoader` ABC 定义了一个新方法 "
1464
+ ":meth:`~importlib.abc.InspectLoader.source_to_code`,它接受源数据和一个路径并返回一个代码对象。 "
1465
+ "其默认实现等价于 ``compile(data, path, 'exec', dont_inherit=True)``。 (由 Eric Snow 和 "
1466
+ "Brett Cannon 在 :issue:`15627` 中贡献。)"
1463
1467
1464
1468
#: ../../whatsnew/3.4.rst:989
1465
1469
msgid ""
@@ -1468,6 +1472,9 @@ msgid ""
1468
1472
"will normally be desirable to override the default implementation for "
1469
1473
"performance reasons. (Contributed by Brett Cannon in :issue:`18072`.)"
1470
1474
msgstr ""
1475
+ "现在 :class:`~importlib.abc.InspectLoader` 也具有 "
1476
+ ":meth:`~importlib.abc.InspectLoader.get_code` 方法的默认实现。 不过,出于性能原因通常需要重写默认实现。 "
1477
+ "(由 Brett Cannon 在 :issue:`18072` 中贡献。)"
1471
1478
1472
1479
#: ../../whatsnew/3.4.rst:994
1473
1480
msgid ""
@@ -1866,6 +1873,8 @@ msgid ""
1866
1873
":func:`pty.spawn` now returns the status value from :func:`os.waitpid` on "
1867
1874
"the child process, instead of ``None``. (Contributed by Gregory P. Smith.)"
1868
1875
msgstr ""
1876
+ "现在 :func:`pty.spawn` 将返回来自子进程上 :func:`os.waitpid` 的状态值,而不是 ``None``。 (由 "
1877
+ "Gregory P. Smith 贡献。)"
1869
1878
1870
1879
#: ../../whatsnew/3.4.rst:1278
1871
1880
msgid "pydoc"
@@ -1880,6 +1889,9 @@ msgid ""
1880
1889
"displaying help information. (Contributed by Larry Hastings in "
1881
1890
":issue:`19674`.)"
1882
1891
msgstr ""
1892
+ "现在 :mod:`pydoc` 模块是直接基于 :func:`inspect.signature` 内省 API,这允许它提供更多可调用对象的签名信息。"
1893
+ " 这一改变也意味着现在当显示帮助信息时 ``__wrapped__`` 属性也会被纳入考虑。 (由 Larry Hastings 在 "
1894
+ ":issue:`19674` 中贡献。)"
1883
1895
1884
1896
#: ../../whatsnew/3.4.rst:1286
1885
1897
msgid ""
@@ -1888,6 +1900,8 @@ msgid ""
1888
1900
"signature of the supplied callable. (Contributed by Larry Hastings in "
1889
1901
":issue:`20710`.)"
1890
1902
msgstr ""
1903
+ ":mod:`pydoc` 模块将不再显示已绑定方法的 ``self`` 形参。 现在,它总是会显示所提供可调用对象实际的当前签名。 (由 Larry "
1904
+ "Hastings 在 :issue:`20710` 中贡献。)"
1891
1905
1892
1906
#: ../../whatsnew/3.4.rst:1291
1893
1907
msgid ""
@@ -1896,12 +1910,14 @@ msgid ""
1896
1910
"has also been improved substantially by the underlying changes in the "
1897
1911
":mod:`inspect` module."
1898
1912
msgstr ""
1913
+ "除了 :mod:`pydoc` 已有的直接修改,它对自定义 ``__dir__`` 方法和各种描述器行为的处理也通过对下层 :mod:`inspect`"
1914
+ " 模块的修改获得了显著的改进。"
1899
1915
1900
1916
#: ../../whatsnew/3.4.rst:1296
1901
1917
msgid ""
1902
1918
"As the :func:`help` builtin is based on :mod:`pydoc`, the above changes also"
1903
1919
" affect the behaviour of :func:`help`."
1904
- msgstr ""
1920
+ msgstr "由于 :func:`help` 内置函数是基于 :mod:`pydoc` 的,上述的变化也会影响 :func:`help` 的行为。 "
1905
1921
1906
1922
#: ../../whatsnew/3.4.rst:1301
1907
1923
msgid "re"
@@ -2607,25 +2623,25 @@ msgstr ""
2607
2623
2608
2624
#: ../../whatsnew/3.4.rst:1798
2609
2625
msgid "CPython Implementation Changes"
2610
- msgstr ""
2626
+ msgstr "CPython 实现的变化 "
2611
2627
2612
2628
#: ../../whatsnew/3.4.rst:1804
2613
2629
msgid "PEP 445: Customization of CPython Memory Allocators"
2614
- msgstr ""
2630
+ msgstr "PEP 445: 自定义 CPython 内存分配器 "
2615
2631
2616
2632
#: ../../whatsnew/3.4.rst:1806
2617
2633
msgid ""
2618
2634
":pep:`445` adds new C level interfaces to customize memory allocation in the"
2619
2635
" CPython interpreter."
2620
- msgstr ""
2636
+ msgstr ":pep:`445` 添加了新的 C 层级接口用来在 CPython 解释器中对内存分配进行自定义。 "
2621
2637
2622
2638
#: ../../whatsnew/3.4.rst:1811
2623
2639
msgid ":pep:`445` -- Add new APIs to customize Python memory allocators"
2624
- msgstr ""
2640
+ msgstr ":pep:`445` -- 新增用于自定义 Python 内存分配器的 API "
2625
2641
2626
2642
#: ../../whatsnew/3.4.rst:1818
2627
2643
msgid "PEP 442: Safe Object Finalization"
2628
- msgstr ""
2644
+ msgstr "PEP 442: 安全的对象最终化 "
2629
2645
2630
2646
#: ../../whatsnew/3.4.rst:1820
2631
2647
msgid ""
@@ -2907,13 +2923,14 @@ msgstr ""
2907
2923
2908
2924
#: ../../whatsnew/3.4.rst:2012
2909
2925
msgid "Significant Optimizations"
2910
- msgstr ""
2926
+ msgstr "显著的优化 "
2911
2927
2912
2928
#: ../../whatsnew/3.4.rst:2014
2913
2929
msgid ""
2914
2930
"The UTF-32 decoder is now 3x to 4x faster. (Contributed by Serhiy Storchaka"
2915
2931
" in :issue:`14625`.)"
2916
2932
msgstr ""
2933
+ "现在 UTF-32 解码器获得了 3x 至 4x 的提速。 (由 Serhiy Storchaka 在 :issue:`14625` 中贡献。)"
2917
2934
2918
2935
#: ../../whatsnew/3.4.rst:2017
2919
2936
msgid ""
0 commit comments