@@ -3531,6 +3531,10 @@ msgid ""
3531
3531
" in the :mod:`json` module are now :ref:`keyword-only <keyword-"
3532
3532
"only_parameter>`. (Contributed by Serhiy Storchaka in :issue:`18726`.)"
3533
3533
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` 中贡献。)"
3534
3538
3535
3539
#: ../../whatsnew/3.6.rst:2233
3536
3540
msgid ""
@@ -3549,6 +3553,11 @@ msgid ""
3549
3553
"accepting additional keyword arguments will need to adjust their calls to "
3550
3554
":meth:`type.__new__` (whether direct or via :class:`super`) accordingly."
3551
3555
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` 间接调用)。"
3552
3561
3553
3562
#: ../../whatsnew/3.6.rst:2245
3554
3563
msgid ""
@@ -3564,7 +3573,7 @@ msgstr ""
3564
3573
msgid ""
3565
3574
"This behavior has also been backported to earlier Python versions by "
3566
3575
"Setuptools 26.0.0."
3567
- msgstr ""
3576
+ msgstr "此行为已通过 Setuptools 26.0.0 反向移植到更早的 Python 版本中。 "
3568
3577
3569
3578
#: ../../whatsnew/3.6.rst:2261
3570
3579
msgid ""
0 commit comments