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