@@ -2005,6 +2005,8 @@ msgid ""
2005
2005
":exc:`ValueError` to provide better context information about the error. "
2006
2006
"(Contributed by Serhiy Storchaka in :issue:`19361`.)"
2007
2007
msgstr ""
2008
+ "现在 JSON 解码器会引发 :exc:`~json.JSONDecodeError` 而不是 :exc:`ValueError` "
2009
+ "以提供有关错误的更好的上下文信息。 (由 Serhiy Storchaka 在 :issue:`19361` 中贡献。)"
2008
2010
2009
2011
#: ../../whatsnew/3.5.rst:1379
2010
2012
msgid "linecache"
@@ -2018,6 +2020,9 @@ msgid ""
2018
2020
"actually needed, without having to carry the module globals around "
2019
2021
"indefinitely. (Contributed by Robert Collins in :issue:`17911`.)"
2020
2022
msgstr ""
2023
+ "新增的 :func:`~linecache.lazycache` 函数可用于捕获非基于文件的模块 的信息以允许在此后通过 "
2024
+ ":func:`~linecache.getline` 获取其行数据。 这样就可以避免在实际需要某一行之前执行 I/O 操作,从而不需要无限期地持有模块 "
2025
+ "globals。 (由 Robert Collins 在 :issue:`17911` 中贡献。)"
2021
2026
2022
2027
#: ../../whatsnew/3.5.rst:1389
2023
2028
msgid "locale"
@@ -2029,6 +2034,8 @@ msgid ""
2029
2034
"into a normalized number string, taking the ``LC_NUMERIC`` settings into "
2030
2035
"account::"
2031
2036
msgstr ""
2037
+ "新增的 :func:`~locale.delocalize` 函数可用于将字符串转换为表示规范化数字的字符串 ,并会考虑 ``LC_NUMERIC`` "
2038
+ "的设置::"
2032
2039
2033
2040
#: ../../whatsnew/3.5.rst:1404
2034
2041
msgid "(Contributed by Cédric Krier in :issue:`13918`.)"
@@ -2045,6 +2052,9 @@ msgid ""
2045
2052
":meth:`~logging.Logger.debug`, etc.), now accept exception instances as an "
2046
2053
"*exc_info* argument, in addition to boolean values and exception tuples::"
2047
2054
msgstr ""
2055
+ "所有日志记录方法(如 :class:`~logging.Logger` :meth:`~logging.Logger.log`, "
2056
+ ":meth:`~logging.Logger.exception`, :meth:`~logging.Logger.critical`, "
2057
+ ":meth:`~logging.Logger.debug` 等)的 *exc_info* 参数现在除接受布尔值和异常元组以外,也接受异常实例::"
2048
2058
2049
2059
#: ../../whatsnew/3.5.rst:1423
2050
2060
msgid "(Contributed by Yury Selivanov in :issue:`20537`.)"
@@ -2057,6 +2067,9 @@ msgid ""
2057
2067
"settings used in an HTTP connection. (Contributed by Alex Gaynor in "
2058
2068
":issue:`22788`.)"
2059
2069
msgstr ""
2070
+ "现在 :class:`handlers.HTTPHandler <logging.handlers.HTTPHandler>` 类接受一个可选的 "
2071
+ ":class:`ssl.SSLContext` 实例来配置在 HTTP 连接中使用的 SSL 设置。 (由 Alex Gaynor 在 "
2072
+ ":issue:`22788` 中贡献。)"
2060
2073
2061
2074
#: ../../whatsnew/3.5.rst:1430
2062
2075
msgid ""
0 commit comments