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

Skip to content

Commit 5dbfc14

Browse files
[po] auto sync
1 parent 4b3645a commit 5dbfc14

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

howto/clinic.po

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2762,23 +2762,29 @@ msgid ""
27622762
"output block, because that could be deactivated by the ``#ifdef``. (That's "
27632763
"the whole point!)"
27642764
msgstr ""
2765+
"不过,这导致了一个棘手的问题:当使用 \"block\" 输出预设时 Argument Clinic 应该把额外的代码放到哪里呢? "
2766+
"它不能放在输出代码块中,因为它可能会被 ``#ifdef`` 停用。 (它的作用就是这个!)"
27652767

27662768
#: ../../howto/clinic.rst:1771
27672769
msgid ""
27682770
"In this situation, Argument Clinic writes the extra code to the \"buffer\" "
27692771
"destination. This may mean that you get a complaint from Argument Clinic:"
27702772
msgstr ""
2773+
"在此情况下,Argument Clinic 会将额外的代码的写入目标设为 \"buffer\"。 这意味着你可能会收到来自 Argument "
2774+
"Clinic 的抱怨:"
27712775

27722776
#: ../../howto/clinic.rst:1779
27732777
msgid ""
27742778
"When this happens, just open your file, find the ``dump buffer`` block that "
27752779
"Argument Clinic added to your file (it'll be at the very bottom), then move "
27762780
"it above the ``PyMethodDef`` structure where that macro is used."
27772781
msgstr ""
2782+
"当发生这种问题时,只需打开你的文件,找到由 Argument Clinic 添加到你的文件的 ``dump buffer`` "
2783+
"代码块(它将位于文件末尾),并将其移到使用了那个宏的 ``PyMethodDef`` 结构体之上。"
27782784

27792785
#: ../../howto/clinic.rst:1786
27802786
msgid "Using Argument Clinic in Python files"
2781-
msgstr ""
2787+
msgstr "在 Python 文件中使用 Argument Clinic"
27822788

27832789
#: ../../howto/clinic.rst:1788
27842790
msgid ""
@@ -2787,9 +2793,13 @@ msgid ""
27872793
"wouldn't make any sense to the Python interpreter. But using Argument "
27882794
"Clinic to run Python blocks lets you use Python as a Python preprocessor!"
27892795
msgstr ""
2796+
"实际上使用 Argument Clinic 来预处理 Python 文件也是可行的。 当然使用 Argument Clinic "
2797+
"代码块并没有什么意义,因为其输出对于 Python 解释器来说是没有意义的。 但是使用 Argument Clinic 来运行 Python "
2798+
"代码块可以让你将 Python 当作 Python 预处理器来使用!"
27902799

27912800
#: ../../howto/clinic.rst:1793
27922801
msgid ""
27932802
"Since Python comments are different from C comments, Argument Clinic blocks "
27942803
"embedded in Python files look slightly different. They look like this:"
27952804
msgstr ""
2805+
"由于 Python 注释不同于 C 注释,嵌入到 Python 文件的 Argument Clinic 代码块看起来会有一点不同。 它们看起来像是这样:"

library/collections.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,8 @@ msgid ""
12431243
" with ``(k := next(iter(d)), d.pop(k))`` which will return and remove the "
12441244
"leftmost (first) item if it exists."
12451245
msgstr ""
1246+
"常规的 :class:`dict` 可以通过 ``(k := next(iter(d)), d.pop(k))`` 来模拟 OrderedDict 的 "
1247+
"``od.popitem(last=False)``,它将返回并移除最左边(开头)的条目,如果条目存在的话。"
12461248

12471249
#: ../../library/collections.rst:1114
12481250
msgid ""
@@ -1256,13 +1258,17 @@ msgid ""
12561258
"last=True)`` with ``d[k] = d.pop(k)`` which will move the key and its "
12571259
"associated value to the rightmost (last) position."
12581260
msgstr ""
1261+
"常规的 :class:`dict` 可以通过 ``d[k] = d.pop(k)`` 来模拟 OrderedDict 的 "
1262+
"``od.move_to_end(k, last=True)``,它将把键及其所关联的值移到最右边(末尾)的位置。"
12591263

12601264
#: ../../library/collections.rst:1121
12611265
msgid ""
12621266
"A regular :class:`dict` does not have an efficient equivalent for "
12631267
"OrderedDict's ``od.move_to_end(k, last=False)`` which moves the key and its "
12641268
"associated value to the leftmost (first) position."
12651269
msgstr ""
1270+
"常规的 :class:`dict` 没有 OrderedDict 的 ``od.move_to_end(k, last=False)`` "
1271+
"的高效等价物,它会把键及其所关联的值移到最左边(开头)的位置。"
12661272

12671273
#: ../../library/collections.rst:1125
12681274
msgid "Until Python 3.8, :class:`dict` lacked a :meth:`__reversed__` method."
@@ -1291,6 +1297,8 @@ msgid ""
12911297
"moved to the right end if *last* is true (the default) or to the beginning "
12921298
"if *last* is false. Raises :exc:`KeyError` if the *key* does not exist:"
12931299
msgstr ""
1300+
"将一个现有的 *key* 移到序字典的任一端。 如果 *last* 为真值(默认)则将条目移到右端,或者如果 *last* 为假值则将条目移到开头。 "
1301+
"如果 *key* 不存在则会引发 :exc:`KeyError`:"
12941302

12951303
#: ../../library/collections.rst:1161
12961304
msgid ""

0 commit comments

Comments
 (0)