@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.7\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2019-01-01 10:14 +0900\n "
14+ "POT-Creation-Date : 2019-04-13 11:09 +0900\n "
1515"PO-Revision-Date : 2017-02-16 17:43+0000\n "
1616"
Last-Translator :
ppcfish <[email protected] >, 2019\n "
1717"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -269,7 +269,7 @@ msgstr ""
269269
270270#: ../../faq/extending.rst:212
271271msgid "For C++ libraries, see :ref:`c-wrapper-software`."
272- msgstr ""
272+ msgstr "有关C ++库,请参阅 :ref:`c-wrapper-software` "
273273
274274#: ../../faq/extending.rst:216
275275msgid "I added a module using the Setup file and the make fails; why?"
@@ -370,7 +370,7 @@ msgstr ""
370370"在等待用户输入时停止。那么另一个解决方案是调用 :c:func:`PyParser_ParseString` 并测试 ``e.error`` 等于 "
371371"``E_EOF`` ,如果等于,就意味着输入不完整。这是一个示例代码片段,未经测试,灵感来自Alex Farber的代码::"
372372
373- #: ../../faq/extending.rst:309
373+ #: ../../faq/extending.rst:310
374374msgid ""
375375"Another solution is trying to compile the received string with "
376376":c:func:`Py_CompileString`. If it compiles without errors, try to execute "
@@ -381,12 +381,16 @@ msgid ""
381381"parsing\" . Here is a complete example using the GNU readline library (you "
382382"may want to ignore **SIGINT** while calling readline())::"
383383msgstr ""
384+ "另一个解决方案是尝试使用 :c:func:`Py_CompileString` 编译接收到的字符串。如果编译时没有出现错误,请尝试通过调用 "
385+ ":c:func:`PyEval_EvalCode` 来执行返回的代码对象。否则,请将输入保存到以后。如果编译失败,找出是错误还是只需要更多的输入-"
386+ "从异常元组中提取消息字符串,并将其与字符串 “分析时意外的EOF” "
387+ "进行比较。下面是使用GNUreadline库的完整示例(您可能希望在调用readline()时忽略 **SIGINT** ):"
384388
385- #: ../../faq/extending.rst:430
389+ #: ../../faq/extending.rst:432
386390msgid "How do I find undefined g++ symbols __builtin_new or __pure_virtual?"
387391msgstr "如何找到未定义的g++符号__builtin_new或__pure_virtual?"
388392
389- #: ../../faq/extending.rst:432
393+ #: ../../faq/extending.rst:434
390394msgid ""
391395"To dynamically load g++ extension modules, you must recompile Python, relink"
392396" it using g++ (change LINKCC in the Python Modules Makefile), and link your "
@@ -396,19 +400,19 @@ msgstr ""
396400"要动态加载g ++扩展模块,必须重新编译Python,要使用g ++重新链接(在Python Modules "
397401"Makefile中更改LINKCC),及链接扩展模块(例如: ``g++ -shared -o mymodule.so mymodule.o`` )。"
398402
399- #: ../../faq/extending.rst:438
403+ #: ../../faq/extending.rst:440
400404msgid ""
401405"Can I create an object class with some methods implemented in C and others "
402406"in Python (e.g. through inheritance)?"
403407msgstr "能否创建一个对象类,其中部分方法在C中实现,而其他方法在Python中实现(例如通过继承)?"
404408
405- #: ../../faq/extending.rst:440
409+ #: ../../faq/extending.rst:442
406410msgid ""
407411"Yes, you can inherit from built-in classes such as :class:`int`, "
408412":class:`list`, :class:`dict`, etc."
409413msgstr "是的,您可以继承内置类,例如 :class:`int` , :class:`list` , :class:`dict` 等。"
410414
411- #: ../../faq/extending.rst:443
415+ #: ../../faq/extending.rst:445
412416msgid ""
413417"The Boost Python Library (BPL, "
414418"http://www.boost.org/libs/python/doc/index.html) provides a way of doing "
0 commit comments