Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 56ac87f

Browse files
[po] auto sync
1 parent 3c8b5d6 commit 56ac87f

2 files changed

Lines changed: 30 additions & 5 deletions

File tree

library/pyexpat.po

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,18 +361,21 @@ msgid ""
361361
" position indicated will be just past the last parse event (regardless of "
362362
"whether there was an associated callback)."
363363
msgstr ""
364+
"下列属性包含 :class:`xmlparser` 对象中关联到当前解析位置的值。 "
365+
"在回调报告解析事件期间它们将指示生成事件的字符序列的第一个字符的位置。 "
366+
"当在回调的外部被调用时,所指示的位置将恰好位于最后的解析事件之后(无论是否存在关联的回调)。"
364367

365368
#: ../../library/pyexpat.rst:284
366369
msgid "Current byte index in the parser input."
367-
msgstr ""
370+
msgstr "解析器输入的当前字节索引号。"
368371

369372
#: ../../library/pyexpat.rst:289
370373
msgid "Current column number in the parser input."
371-
msgstr ""
374+
msgstr "解析器输入的当前列号。"
372375

373376
#: ../../library/pyexpat.rst:294
374377
msgid "Current line number in the parser input."
375-
msgstr ""
378+
msgstr "解析器输入的当前行号。"
376379

377380
#: ../../library/pyexpat.rst:296
378381
msgid ""
@@ -382,6 +385,9 @@ msgid ""
382385
"accepting the correct number of arguments. The arguments are all strings, "
383386
"unless otherwise stated."
384387
msgstr ""
388+
"可被设置的处理句柄列表。 要在一个 :class:`xmlparser` 对象 *o* 上设置处理句柄,请使用 ``o.handlername = "
389+
"func``。 *handlername* 必须从下面的列表中获取,而 *func* 必须为接受正确数量参数的可调用对象。 "
390+
"所有参数均为字符串,除非另外指明。"
385391

386392
#: ../../library/pyexpat.rst:305
387393
msgid ""

whatsnew/3.10.po

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,12 +944,15 @@ msgid ""
944944
":class:`types.MappingProxyType` object wrapping the original dictionary. "
945945
"(Contributed by Dennis Sweeney in :issue:`40890`.)"
946946
msgstr ""
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
949952
msgid ""
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
955958
msgid ""
@@ -960,6 +963,9 @@ msgid ""
960963
":meth:`~object.__index__` method). (Contributed by Serhiy Storchaka in "
961964
":issue:`37999`.)"
962965
msgstr ""
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
965971
msgid ""
@@ -968,12 +974,15 @@ msgid ""
968974
":func:`object.__rpow__` as expected. (Contributed by Alex Shkop in "
969975
":issue:`38302`.)"
970976
msgstr ""
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
973982
msgid ""
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
979988
msgid ""
@@ -983,6 +992,9 @@ msgid ""
983992
"``__globals__[\"__builtins__\"]`` if it exists, else from the current "
984993
"builtins. (Contributed by Mark Shannon in :issue:`42990`.)"
985994
msgstr ""
995+
"函数具有一个新的 ``__builtins__`` 属性,当函数被执行时它会被用于查找内置符号,而不是在 "
996+
"``__globals__['__builtins__']`` 中查找。 如果 ``__globals__[\"__builtins__\"]`` "
997+
"存在则该属性将基于它来初始化,否则将基于当前的内置函数。 (由 Mark Shannon 在 :issue:`42990` 中贡献。)"
986998

987999
#: ../../whatsnew/3.10.rst:846
9881000
msgid ""
@@ -991,6 +1003,9 @@ msgid ""
9911003
"respectively. (Contributed by Joshua Bronson, Daniel Pope, and Justin Wang "
9921004
"in :issue:`31861`.)"
9931005
msgstr ""
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
9961011
msgid ""
@@ -1001,6 +1016,10 @@ msgid ""
10011016
"static methods are now callable as regular functions. (Contributed by Victor"
10021017
" Stinner in :issue:`43682`.)"
10031018
msgstr ""
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
10061025
msgid ""

0 commit comments

Comments
 (0)