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

Skip to content

Commit 25c1096

Browse files
[po] auto sync
1 parent 93777a2 commit 25c1096

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "90.67%", "updated_at": "2024-02-18T13:08:53Z"}
1+
{"translation": "90.67%", "updated_at": "2024-02-19T00:25:31Z"}

whatsnew/3.6.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3531,6 +3531,10 @@ msgid ""
35313531
" in the :mod:`json` module are now :ref:`keyword-only <keyword-"
35323532
"only_parameter>`. (Contributed by Serhiy Storchaka in :issue:`18726`.)"
35333533
msgstr ""
3534+
"现在 :mod:`json` 模块中 :func:`~json.dump`, :func:`~json.dumps`, "
3535+
":func:`~json.load` 和 :func:`~json.loads` 函数以及 :class:`~json.JSONEncoder` 和 "
3536+
":class:`~json.JSONDecoder` 类构造器的所有可选参数都是 :ref:`仅限关键字参数 <keyword-"
3537+
"only_parameter>`。 (由 Serhiy Storchaka 在 :issue:`18726` 中贡献。)"
35343538

35353539
#: ../../whatsnew/3.6.rst:2233
35363540
msgid ""
@@ -3549,6 +3553,11 @@ msgid ""
35493553
"accepting additional keyword arguments will need to adjust their calls to "
35503554
":meth:`type.__new__` (whether direct or via :class:`super`) accordingly."
35513555
msgstr ""
3556+
"作为 :pep:`487` 的一部分,对传递给 :class:`type` 的关键字参数的处理(元类提示 ``metaclass`` "
3557+
"除外)现在统一委托给 :meth:`object.__init_subclass__`。 这意味着 :meth:`type.__new__` 和 "
3558+
":meth:`type.__init__` 现在都接受任意的关键字参数,但 :meth:`object.__init_subclass__` (从 "
3559+
":meth:`type.__new__` 调用)默认将拒绝它们。 接受额外关键字参数的自定义元类需要相应调整对 :meth:`type.__new__`"
3560+
" 的调用(无论是直接调用还是通过 :class:`super` 间接调用)。"
35523561

35533562
#: ../../whatsnew/3.6.rst:2245
35543563
msgid ""
@@ -3564,7 +3573,7 @@ msgstr ""
35643573
msgid ""
35653574
"This behavior has also been backported to earlier Python versions by "
35663575
"Setuptools 26.0.0."
3567-
msgstr ""
3576+
msgstr "此行为已通过 Setuptools 26.0.0 反向移植到更早的 Python 版本中。"
35683577

35693578
#: ../../whatsnew/3.6.rst:2261
35703579
msgid ""

0 commit comments

Comments
 (0)
0