@@ -2889,13 +2889,17 @@ msgid ""
2889
2889
"specify the time unit for the timer output. Supported options are ``usec``,"
2890
2890
" ``msec``, or ``sec``. (Contributed by Julian Gindi in :issue:`18983`.)"
2891
2891
msgstr ""
2892
+ "新增的命令行选项 ``-u`` 或 :samp:`--unit={U}` 可被用于指定计时器输出的时间单位。 受支持的选项有 ``usec``, "
2893
+ "``msec`` 或 ``sec``。 (由 Julian Gindi 在 :issue:`18983` 中贡献。)"
2892
2894
2893
2895
#: ../../whatsnew/3.5.rst:1930
2894
2896
msgid ""
2895
2897
"The :func:`~timeit.timeit` function has a new *globals* parameter for "
2896
2898
"specifying the namespace in which the code will be running. (Contributed by "
2897
2899
"Ben Roberts in :issue:`2527`.)"
2898
2900
msgstr ""
2901
+ ":func:`~timeit.timeit` 函数新增了 *globals* 形参用于指定代码运行所在的命名空间。 (由 Ben Roberts 在 "
2902
+ ":issue:`2527` 中贡献。).)"
2899
2903
2900
2904
#: ../../whatsnew/3.5.rst:1936
2901
2905
msgid "tkinter"
@@ -3006,13 +3010,17 @@ msgid ""
3006
3010
"objects to raise :exc:`AttributeError` on attribute names starting with "
3007
3011
"``\" assert\" ``. (Contributed by Kushal Das in :issue:`21238`.)"
3008
3012
msgstr ""
3013
+ "类构造器新增了 *unsafe* 形参,它可导致模拟对象在名称以 ``\" assert\" `` 打头的属性名上引发 "
3014
+ ":exc:`AttributeError`。 (由 Kushal Das 在 :issue:`21238` 中贡献。)"
3009
3015
3010
3016
#: ../../whatsnew/3.5.rst:2012
3011
3017
msgid ""
3012
3018
"A new :meth:`Mock.assert_not_called() "
3013
3019
"<unittest.mock.Mock.assert_not_called>` method to check if the mock object "
3014
3020
"was called. (Contributed by Kushal Das in :issue:`21262`.)"
3015
3021
msgstr ""
3022
+ "新增了 :meth:`Mock.assert_not_called() <unittest.mock.Mock.assert_not_called>` "
3023
+ "方法用于检测模拟对象是否已被调用。 (由 Kushal Das 在 :issue:`21262` 中贡献。)"
3016
3024
3017
3025
#: ../../whatsnew/3.5.rst:2016
3018
3026
msgid ""
@@ -3021,6 +3029,9 @@ msgid ""
3021
3029
"(Contributed by Johannes Baiter in :issue:`20968`, and Håkan Lövdahl in "
3022
3030
":issue:`23581` and :issue:`23568`.)"
3023
3031
msgstr ""
3032
+ "现在 :class:`~unittest.mock.MagicMock` 类已支持 :meth:`__truediv__`, "
3033
+ ":meth:`__divmod__` 和 :meth:`__matmul__` 运算符。 (由 Johannes Baiter 在 "
3034
+ ":issue:`20968` 中贡献,并由 Håkan Lövdahl 在 :issue:`23581` 和 :issue:`23568` 中贡献。)"
3024
3035
3025
3036
#: ../../whatsnew/3.5.rst:2021
3026
3037
msgid ""
@@ -3779,12 +3790,14 @@ msgid ""
3779
3790
"value is always an :class:`int`. (Contributed by Akira Li in "
3780
3791
":issue:`19940`.)"
3781
3792
msgstr ""
3793
+ "根据 :rfc:`5280`,现在 :func:`ssl.cert_time_to_seconds` 函数会将输入的时间解读为 UTC 而不是本地时间。"
3794
+ " 此外,其返回值必须为 :class:`int`。 (由 Akira Li 在 :issue:`19940` 中贡献。)"
3782
3795
3783
3796
#: ../../whatsnew/3.5.rst:2486
3784
3797
msgid ""
3785
3798
"The ``pygettext.py`` Tool now uses the standard +NNNN format for timezones "
3786
3799
"in the POT-Creation-Date header."
3787
- msgstr ""
3800
+ msgstr "现在 ``pygettext.py`` 工具将为 POT-Creation-Date 标头中的时区使用标准的 +NNNN 格式。 "
3788
3801
3789
3802
#: ../../whatsnew/3.5.rst:2489
3790
3803
msgid ""
@@ -3793,6 +3806,8 @@ msgid ""
3793
3806
"(test) program depends on patching the module-level variable to capture the "
3794
3807
"debug output, you will need to update it to capture sys.stderr instead."
3795
3808
msgstr ""
3809
+ "现在 :mod:`smtplib` 模块对于调试输出将使用 :data:`sys.stderr` 而不是之前的模块级 :data:`stderr` "
3810
+ "变量。 如果你的(测试)程序依赖于对模块级变量打补丁来捕获调试输出,你将需要更新代码将其改为捕获 sys.stderr。"
3796
3811
3797
3812
#: ../../whatsnew/3.5.rst:2494
3798
3813
msgid ""
0 commit comments