8000 [po] auto sync · python/python-docs-zh-cn@d148773 · GitHub
[go: up one dir, main page]

Skip to content

Commit d148773

Browse files
[po] auto sync
1 parent cdaa580 commit d148773

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "91.31%", "updated_at": "2024-03-07T03:09:09Z"}
1+
{"translation": "91.33%", "updated_at": "2024-03-07T08:09:27Z"}

whatsnew/3.5.po

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2889,13 +2889,17 @@ msgid ""
28892889
"specify the time unit for the timer output. Supported options are ``usec``,"
28902890
" ``msec``, or ``sec``. (Contributed by Julian Gindi in :issue:`18983`.)"
28912891
msgstr ""
2892+
"新增的命令行选项 ``-u`` 或 :samp:`--unit={U}` 可被用于指定计时器输出的时间单位。 受支持的选项有 ``usec``, "
2893+
"``msec`` 或 ``sec``。 (由 Julian Gindi 在 :issue:`18983` 中贡献。)"
28922894

28932895
#: ../../whatsnew/3.5.rst:1930
28942896
msgid ""
28952897
"The :func:`~timeit.timeit` function has a new *globals* parameter for "
28962898
"specifying the namespace in which the code will be running. (Contributed by "
28972899
"Ben Roberts in :issue:`2527`.)"
28982900
msgstr ""
2901+
":func:`~timeit.timeit` 函数新增了 *globals* 形参用于指定代码运行所在的命名空间。 (由 Ben Roberts 在 "
2902+
":issue:`2527` 中贡献。).)"
28992903

29002904
#: ../../whatsnew/3.5.rst:1936
29012905
msgid "tkinter"
@@ -3006,13 +3010,17 @@ msgid ""
30063010
"objects to raise :exc:`AttributeError` on attribute names starting with "
30073011
"``\"assert\"``. (Contributed by Kushal Das in :issue:`21238`.)"
30083012
msgstr ""
3013+
"类构造器新增了 *unsafe* 形参,它可导致模拟对象在名称以 ``\"assert\"`` 打头的属性名上引发 "
3014+
":exc:`AttributeError`。 (由 Kushal Das 在 :issue:`21238` 中贡献。)"
30093015

30103016
#: ../../whatsnew/3.5.rst:2012
30113017
msgid ""
30123018
"A new :meth:`Mock.assert_not_called() "
30133019
"<unittest.mock.Mock.assert_not_called>` method to check if the mock object "
30143020
"was called. (Contributed by Kushal Das in :issue:`21262`.)"
30153021
msgstr ""
3022+
"新增了 :meth:`Mock.assert_not_called() <unittest.mock.Mock.assert_not_called>` "
3023+
"方法用于检测模拟对象是否已被调用。 (由 Kushal Das 在 :issue:`21262` 中贡献。)"
30163024

30173025
#: ../../whatsnew/3.5.rst:2016
30183026
msgid ""
@@ -3021,6 +3029,9 @@ msgid ""
30213029
"(Contributed by Johannes Baiter in :issue:`20968`, and Håkan Lövdahl in "
30223030
":issue:`23581` and :issue:`23568`.)"
30233031
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` 中贡献。)"
30243035

30253036
#: ../../whatsnew/3.5.rst:2021
30263037
msgid ""
@@ -3779,12 +3790,14 @@ msgid ""
37793790
"value is always an :class:`int`. (Contributed by Akira Li in "
37803791
":issue:`19940`.)"
37813792
msgstr ""
3793+
"根据 :rfc:`5280`,现在 :func:`ssl.cert_time_to_seconds` 函数会将输入的时间解读为 UTC 而不是本地时间。"
3794+
" 此外,其返回值必须为 :class:`int`。 (由 Akira Li 在 :issue:`19940` 中贡献。)"
37823795

37833796
#: ../../whatsnew/3.5.rst:2486
37843797
msgid ""
37853798
"The ``pygettext.py`` Tool now uses the standard +NNNN format for timezones "
37863799
"in the POT-Creation-Date header."
3787-
msgstr ""
3800+
msgstr "现在 ``pygettext.py`` 工具将为 POT-Creation-Date 标头中的时区使用标准的 +NNNN 格式。"
37883801

37893802
#: ../../whatsnew/3.5.rst:2489
37903803
msgid ""
@@ -3793,6 +3806,8 @@ msgid ""
37933806
"(test) program depends on patching the module-level variable to capture the "
37943807
"debug output, you will need to update it to capture sys.stderr instead."
37953808
msgstr ""
3809+
"现在 :mod:`smtplib` 模块对于调试输出将使用 :data:`sys.stderr` 而不是之前的模块级 :data:`stderr` "
3810+
"变量。 如果你的(测试)程序依赖于对模块级变量打补丁来捕获调试输出,你将需要更新代码将其改为捕获 sys.stderr。"
37963811

37973812
#: ../../whatsnew/3.5.rst:2494
37983813
msgid ""

0 commit comments

Comments
 (0)
0