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