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

Skip to content

Commit 6a054c2

Browse files
[po] auto sync
1 parent 2363813 commit 6a054c2

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "91.91%", "updated_at": "2024-03-07T03:20:59Z"}
1+
{"translation": "91.93%", "updated_at": "2024-03-07T08:21:59Z"}

whatsnew/3.5.po

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

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

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

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

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

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

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

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

37963811
#: ../../whatsnew/3.5.rst:2494
37973812
msgid ""
37983813
"The :meth:`str.startswith` and :meth:`str.endswith` methods no longer return"
37993814
" ``True`` when finding the empty string and the indexes are completely out "
38003815
"of range. (Contributed by Serhiy Storchaka in :issue:`24284`.)"
38013816
msgstr ""
3817+
"当发现空字符串且索引完全超出范围时 :meth:`str.startswith` 和 :meth:`str.endswith` 方法将不再返回 "
3818+
"``True``。 (由 Serhiy Storchaka 在 :issue:`24284` 中贡献。)"
38023819

38033820
#: ../../whatsnew/3.5.rst:2498
38043821
msgid ""

0 commit comments

Comments
 (0)
0