@@ -1886,13 +1886,17 @@ msgid ""
18861886" are now picklable and hashable. (Contributed by Yury Selivanov in "
18871887":issue:`20726` and :issue:`20334`.)"
18881888msgstr ""
1889+ "现在 :class:`~inspect.Signature` 和 :class:`~inspect.Parameter` 类都是可封存和可哈希的对象。 "
1890+ "(由 Yury Selivanov 在 :issue:`20726` 和 :issue:`20334` 中贡献。)"
18891891
18901892#: ../../whatsnew/3.5.rst:1289
18911893msgid ""
18921894"A new :meth:`BoundArguments.apply_defaults() "
18931895"<inspect.BoundArguments.apply_defaults>` method provides a way to set "
18941896"default values for missing arguments::"
18951897msgstr ""
1898+ "新增的 :meth:`BoundArguments.apply_defaults() "
1899+ "<inspect.BoundArguments.apply_defaults>` 方法提供了一种为缺失的参数设置默认值的方式::"
18961900
18971901#: ../../whatsnew/3.5.rst:1299
18981902msgid "(Contributed by Yury Selivanov in :issue:`24190`.)"
@@ -1905,6 +1909,9 @@ msgid ""
19051909":class:`~inspect.Signature` easier. (Contributed by Yury Selivanov and Eric"
19061910" Snow in :issue:`17373`.)"
19071911msgstr ""
1912+ "新增的类方法 :meth:`Signature.from_callable() <inspect.Signature.from_callable>` "
1913+ "使得 :class:`~inspect.Signature` 的子类化更为容易。 (由 Yury Selivanov 和 Eric Snow 在 "
1914+ ":issue:`17373` 中贡献。)"
19081915
19091916#: ../../whatsnew/3.5.rst:1306
19101917msgid ""
@@ -1913,6 +1920,8 @@ msgid ""
19131920"following of ``__wrapped__`` links. (Contributed by Yury Selivanov in "
19141921":issue:`20691`.)"
19151922msgstr ""
1923+ "现在 :func:`~inspect.signature` 函数接受 *follow_wrapped* 可选关键字参数,当其设为 ``False`` "
1924+ "时,将禁用 ``__wrapped__`` 链接的自动跟随。 (由 Yury Selivanov 在 :issue:`20691` 中贡献。)"
19161925
19171926#: ../../whatsnew/3.5.rst:1311
19181927msgid ""
@@ -1923,6 +1932,11 @@ msgid ""
19231932":func:`~inspect.getcoroutinestate`. (Contributed by Yury Selivanov in "
19241933":issue:`24017` and :issue:`24400`.)"
19251934msgstr ""
1935+ "新增了一组用于检查 :term:`协程函数 <coroutine function>` 和 :term:`协程对象 <coroutine>` 的函数: "
1936+ ":func:`~inspect.iscoroutine`, :func:`~inspect.iscoroutinefunction`, "
1937+ ":func:`~inspect.isawaitable`, :func:`~inspect.getcoroutinelocals` 和 "
1938+ ":func:`~inspect.getcoroutinestate`。 (由 Yury Selivanov 在 :issue:`24017` 和 "
1939+ ":issue:`24400` 中贡献。)"
19261940
19271941#: ../../whatsnew/3.5.rst:1319
19281942msgid ""
@@ -1931,6 +1945,9 @@ msgid ""
19311945"functions now return a list of named tuples. (Contributed by Daniel Shahaf "
19321946"in :issue:`16808`.)"
19331947msgstr ""
1948+ "现在 :func:`~inspect.stack`, :func:`~inspect.trace`, "
1949+ ":func:`~inspect.getouterframes` 和 :func:`~inspect.getinnerframes` "
1950+ "函数将返回具名元组的列表。 (由 Daniel Shahaf 在 :issue:`16808` 中贡献。)"
19341951
19351952#: ../../whatsnew/3.5.rst:1326
19361953msgid "io"
@@ -1944,6 +1961,10 @@ msgid ""
19441961"<io.RawIOBase.readinto>` methods. (Contributed by Nikolaus Rath in "
19451962":issue:`20578`.)"
19461963msgstr ""
1964+ "新增 :meth:`BufferedIOBase.readinto1() <io.BufferedIOBase.readinto1>` "
1965+ "方法,该方法会使用至少一次对下层原始流的调用 :meth:`RawIOBase.read() <io.RawIOBase.read>` 或 "
1966+ ":meth:`RawIOBase.readinto() <io.RawIOBase.readinto>` 方法。 (由 Nikolaus Rath 在 "
1967+ ":issue:`20578` 中贡献。)"
19471968
19481969#: ../../whatsnew/3.5.rst:1336
19491970msgid "ipaddress"
@@ -1955,6 +1976,8 @@ msgid ""
19551976" classes now accept an ``(address, netmask)`` tuple argument, so as to "
19561977"easily construct network objects from existing addresses::"
19571978msgstr ""
1979+ "现在 :class:`~ipaddress.IPv4Network` 和 :class:`~ipaddress.IPv6Network` 类均接受一个 "
1980+ "``(address, netmask)`` 元组参数,可以根据现有地址方便地构造网络对象::"
19581981
19591982#: ../../whatsnew/3.5.rst:1348
19601983msgid "(Contributed by Peter Moody and Antoine Pitrou in :issue:`16531`.)"
0 commit comments