@@ -2762,23 +2762,29 @@ msgid ""
27622762"output block, because that could be deactivated by the ``#ifdef``. (That's "
27632763"the whole point!)"
27642764msgstr ""
2765+ "不过,这导致了一个棘手的问题:当使用 \" block\" 输出预设时 Argument Clinic 应该把额外的代码放到哪里呢? "
2766+ "它不能放在输出代码块中,因为它可能会被 ``#ifdef`` 停用。 (它的作用就是这个!)"
27652767
27662768#: ../../howto/clinic.rst:1771
27672769msgid ""
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:"
27702772msgstr ""
2773+ "在此情况下,Argument Clinic 会将额外的代码的写入目标设为 \" buffer\" 。 这意味着你可能会收到来自 Argument "
2774+ "Clinic 的抱怨:"
27712775
27722776#: ../../howto/clinic.rst:1779
27732777msgid ""
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."
27772781msgstr ""
2782+ "当发生这种问题时,只需打开你的文件,找到由 Argument Clinic 添加到你的文件的 ``dump buffer`` "
2783+ "代码块(它将位于文件末尾),并将其移到使用了那个宏的 ``PyMethodDef`` 结构体之上。"
27782784
27792785#: ../../howto/clinic.rst:1786
27802786msgid "Using Argument Clinic in Python files"
2781- msgstr ""
2787+ msgstr "在 Python 文件中使用 Argument Clinic "
27822788
27832789#: ../../howto/clinic.rst:1788
27842790msgid ""
@@ -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!"
27892795msgstr ""
2796+ "实际上使用 Argument Clinic 来预处理 Python 文件也是可行的。 当然使用 Argument Clinic "
2797+ "代码块并没有什么意义,因为其输出对于 Python 解释器来说是没有意义的。 但是使用 Argument Clinic 来运行 Python "
2798+ "代码块可以让你将 Python 当作 Python 预处理器来使用!"
27902799
27912800#: ../../howto/clinic.rst:1793
27922801msgid ""
27932802"Since Python comments are different from C comments, Argument Clinic blocks "
27942803"embedded in Python files look slightly different. They look like this:"
27952804msgstr ""
2805+ "由于 Python 注释不同于 C 注释,嵌入到 Python 文件的 Argument Clinic 代码块看起来会有一点不同。 它们看起来像是这样:"
0 commit comments