@@ -944,12 +944,15 @@ msgid ""
944944":class:`types.MappingProxyType` object wrapping the original dictionary. "
945945"(Contributed by Dennis Sweeney in :issue:`40890`.)"
946946msgstr ""
947+ "现在 :meth:`dict.keys`, :meth:`dict.values` 和 :meth:`dict.items` 所返回的视图都有一个 "
948+ "``mapping`` 属性,它给出包装了原始字典的 :class:`types.MappingProxyType` 对象。 (由 Dennis "
949+ "Sweeney 在 :issue:`40890` 中贡献。)"
947950
948951#: ../../whatsnew/3.10.rst:823
949952msgid ""
950953":pep:`618`: The :func:`zip` function now has an optional ``strict`` flag, "
951954"used to require that all the iterables have an equal length."
952- msgstr ""
955+ msgstr ":pep:`618`: 现在 :func:`zip` 函数有一个可选的 ``strict`` 旗标,用于要求所有可迭代对象的长度都相等。 "
953956
954957#: ../../whatsnew/3.10.rst:826
955958msgid ""
@@ -960,6 +963,9 @@ msgid ""
960963":meth:`~object.__index__` method). (Contributed by Serhiy Storchaka in "
961964":issue:`37999`.)"
962965msgstr ""
966+ "接受整数参数的内置和扩展函数不再接受 :class:`~decimal.Decimal`, :class:`~fractions.Fraction` "
967+ "以及其他可被转换为整数但会丢失精度(即具有 :meth:`~object.__int__` 方法但没有 "
968+ ":meth:`~object.__index__` 方法)的对象。 (由 Serhiy Storchaka 在 :issue:`37999` 中贡献。)"
963969
964970#: ../../whatsnew/3.10.rst:833
965971msgid ""
@@ -968,12 +974,15 @@ msgid ""
968974":func:`object.__rpow__` as expected. (Contributed by Alex Shkop in "
969975":issue:`38302`.)"
970976msgstr ""
977+ "如果 :func:`object.__ipow__` 返回 :const:`NotImplemented`,该运算符将正确地按照预期回退至 "
978+ ":func:`object.__pow__` 和 :func:`object.__rpow__`。 (由 Alex Shkop 在 "
979+ ":issue:`38302` 中贡献。)"
971980
972981#: ../../whatsnew/3.10.rst:837
973982msgid ""
974983"Assignment expressions can now be used unparenthesized within set literals "
975984"and set comprehensions, as well as in sequence indexes (but not slices)."
976- msgstr ""
985+ msgstr "现在赋值表达式可以不带圆括号地在集合字面值和集合推导式中使用,也可以在序列索引号中使用(但不能用于切片)。 "
977986
978987#: ../../whatsnew/3.10.rst:840
979988msgid ""
@@ -983,6 +992,9 @@ msgid ""
983992"``__globals__[\" __builtins__\" ]`` if it exists, else from the current "
984993"builtins. (Contributed by Mark Shannon in :issue:`42990`.)"
985994msgstr ""
995+ "函数具有一个新的 ``__builtins__`` 属性,当函数被执行时它会被用于查找内置符号,而不是在 "
996+ "``__globals__['__builtins__']`` 中查找。 如果 ``__globals__[\" __builtins__\" ]`` "
997+ "存在则该属性将基于它来初始化,否则将基于当前的内置函数。 (由 Mark Shannon 在 :issue:`42990` 中贡献。)"
986998
987999#: ../../whatsnew/3.10.rst:846
9881000msgid ""
@@ -991,6 +1003,9 @@ msgid ""
9911003"respectively. (Contributed by Joshua Bronson, Daniel Pope, and Justin Wang "
9921004"in :issue:`31861`.)"
9931005msgstr ""
1006+ "增加了两个新的内置函数 —— :func:`aiter` 和 :func:`anext` 以分别提供与 :func:`iter` 和 "
1007+ ":func:`next` 对应的异步版本。 (由 Joshua Bronson, Daniel Pope 和 Justin Wang 在 "
1008+ ":issue:`31861` 中贡献。)"
9941009
9951010#: ../../whatsnew/3.10.rst:851
9961011msgid ""
@@ -1001,6 +1016,10 @@ msgid ""
10011016"static methods are now callable as regular functions. (Contributed by Victor"
10021017" Stinner in :issue:`43682`.)"
10031018msgstr ""
1019+ "静态方法 (:func:`@staticmethod <staticmethod>`) 和类方法 (:func:`@classmethod "
1020+ "<classmethod>`) 现在会继承方法属性 (``__module__``, ``__name__``, ``__qualname__``, "
1021+ "``__doc__``, ``__annotations__``) 并具有一个新的 ``__wrapped__`` 属性。 "
1022+ "此外,静态方法现在还是与常规函数一样的可调用对象。 (由 Victor Stinner 在 :issue:`43682` 中贡献。)"
10041023
10051024#: ../../whatsnew/3.10.rst:858
10061025msgid ""
0 commit comments