@@ -1989,6 +1989,8 @@ msgid ""
19891989":class:`~ipaddress.IPv4Network` and :class:`~ipaddress.IPv6Network` classes "
19901990"returns the name of the reverse DNS PTR record::"
19911991msgstr ""
1992+ "新增 :class:`~ipaddress.IPv4Network` 和 :class:`~ipaddress.IPv6Network` 类的 "
1993+ ":attr:`~ipaddress.IPv4Network.reverse_pointer` 属性用于返回 DNS PTR 反向记录的名称::"
19921994
19931995#: ../../whatsnew/3.5.rst:1362
19941996msgid "(Contributed by Leon Weber in :issue:`20480`.)"
@@ -2005,13 +2007,17 @@ msgid ""
20052007" to sort the keys alphabetically. (Contributed by Berker Peksag in "
20062008":issue:`21650`.)"
20072009msgstr ""
2010+ "现在 :mod:`json.tool` 命令行接口会保留输入中传入的 JSON 对象中键的顺序。 新的 ``--sort-keys`` "
2011+ "选项可用于按字母顺序对键进行排序。 (由 Berker Peksag 在 :issue:`21650` 中贡献。)"
20082012
20092013#: ../../whatsnew/3.5.rst:1373
20102014msgid ""
20112015"JSON decoder now raises :exc:`~json.JSONDecodeError` instead of "
20122016":exc:`ValueError` to provide better context information about the error. "
20132017"(Contributed by Serhiy Storchaka in :issue:`19361`.)"
20142018msgstr ""
2019+ "现在 JSON 解码器会引发 :exc:`~json.JSONDecodeError` 而不是 :exc:`ValueError` "
2020+ "以提供有关错误的更好的上下文信息。 (由 Serhiy Storchaka 在 :issue:`19361` 中贡献。)"
20152021
20162022#: ../../whatsnew/3.5.rst:1379
20172023msgid "linecache"
@@ -2025,6 +2031,9 @@ msgid ""
20252031"actually needed, without having to carry the module globals around "
20262032"indefinitely. (Contributed by Robert Collins in :issue:`17911`.)"
20272033msgstr ""
2034+ "新增的 :func:`~linecache.lazycache` 函数可用于捕获非基于文件的模块 的信息以允许在此后通过 "
2035+ ":func:`~linecache.getline` 获取其行数据。 这样就可以避免在实际需要某一行之前执行 I/O 操作,从而不需要无限期地持有模块 "
2036+ "globals。 (由 Robert Collins 在 :issue:`17911` 中贡献。)"
20282037
20292038#: ../../whatsnew/3.5.rst:1389
20302039msgid "locale"
@@ -2036,6 +2045,8 @@ msgid ""
20362045"into a normalized number string, taking the ``LC_NUMERIC`` settings into "
20372046"account::"
20382047msgstr ""
2048+ "新增的 :func:`~locale.delocalize` 函数可用于将字符串转换为表示规范化数字的字符串 ,并会考虑 ``LC_NUMERIC`` "
2049+ "的设置::"
20392050
20402051#: ../../whatsnew/3.5.rst:1404
20412052msgid "(Contributed by Cédric Krier in :issue:`13918`.)"
@@ -2052,6 +2063,9 @@ msgid ""
20522063":meth:`~logging.Logger.debug`, etc.), now accept exception instances as an "
20532064"*exc_info* argument, in addition to boolean values and exception tuples::"
20542065msgstr ""
2066+ "所有日志记录方法(如 :class:`~logging.Logger` :meth:`~logging.Logger.log`, "
2067+ ":meth:`~logging.Logger.exception`, :meth:`~logging.Logger.critical`, "
2068+ ":meth:`~logging.Logger.debug` 等)的 *exc_info* 参数现在除接受布尔值和异常元组以外,也接受异常实例::"
20552069
20562070#: ../../whatsnew/3.5.rst:1423
20572071msgid "(Contributed by Yury Selivanov in :issue:`20537`.)"
@@ -2064,6 +2078,9 @@ msgid ""
20642078"settings used in an HTTP connection. (Contributed by Alex Gaynor in "
20652079":issue:`22788`.)"
20662080msgstr ""
2081+ "现在 :class:`handlers.HTTPHandler <logging.handlers.HTTPHandler>` 类接受一个可选的 "
2082+ ":class:`ssl.SSLContext` 实例来配置在 HTTP 连接中使用的 SSL 设置。 (由 Alex Gaynor 在 "
2083+ ":issue:`22788` 中贡献。)"
20672084
20682085#: ../../whatsnew/3.5.rst:1430
20692086msgid ""
0 commit comments