7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.10\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2021-10-26 16:47 +0000\n "
10
+ "POT-Creation-Date : 2022-01-27 07:51 +0000\n "
11
11
"PO-Revision-Date : 2018-05-23 14:35+0000\n "
12
12
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -305,11 +305,11 @@ msgstr ""
305
305
msgid "For Debian, run ``apt-get install python-dev``."
306
306
msgstr ""
307
307
308
- #: ../../faq/extending.rst:259
308
+ #: ../../faq/extending.rst:258
309
309
msgid "How do I tell \" incomplete input\" from \" invalid input\" ?"
310
310
msgstr ""
311
311
312
- #: ../../faq/extending.rst:261
312
+ #: ../../faq/extending.rst:260
313
313
msgid ""
314
314
"Sometimes you want to emulate the Python interactive interpreter's behavior, "
315
315
"where it gives you a continuation prompt when the input is incomplete (e.g. "
@@ -318,13 +318,13 @@ msgid ""
318
318
"message immediately when the input is invalid."
319
319
msgstr ""
320
320
321
- #: ../../faq/extending.rst:267
321
+ #: ../../faq/extending.rst:266
322
322
msgid ""
323
323
"In Python you can use the :mod:`codeop` module, which approximates the "
324
324
"parser's behavior sufficiently. IDLE uses this, for example."
325
325
msgstr ""
326
326
327
- #: ../../faq/extending.rst:270
327
+ #: ../../faq/extending.rst:269
328
328
msgid ""
329
329
"The easiest way to do it in C is to call :c:func:`PyRun_InteractiveLoop` "
330
330
"(perhaps in a separate thread) and let the Python interpreter handle the "
@@ -334,44 +334,29 @@ msgid ""
334
334
msgstr ""
335
335
336
336
#: ../../faq/extending.rst:276
337
- msgid ""
338
- "However sometimes you have to run the embedded Python interpreter in the "
339
- "same thread as your rest application and you can't allow the :c:func:"
340
- "`PyRun_InteractiveLoop` to stop while waiting for user input. A solution is "
341
- "trying to compile the received string with :c:func:`Py_CompileString`. If it "
342
- "compiles without errors, try to execute the returned code object by calling :"
343
- "c:func:`PyEval_EvalCode`. Otherwise save the input for later. If the "
344
- "compilation fails, find out if it's an error or just more input is required "
345
- "- by extracting the message string from the exception tuple and comparing it "
346
- "to the string \" unexpected EOF while parsing\" . Here is a complete example "
347
- "using the GNU readline library (you may want to ignore **SIGINT** while "
348
- "calling readline())::"
349
- msgstr ""
350
-
351
- #: ../../faq/extending.rst:401
352
337
msgid "How do I find undefined g++ symbols __builtin_new or __pure_virtual?"
353
338
msgstr ""
354
339
355
- #: ../../faq/extending.rst:403
340
+ #: ../../faq/extending.rst:278
356
341
msgid ""
357
342
"To dynamically load g++ extension modules, you must recompile Python, relink "
358
343
"it using g++ (change LINKCC in the Python Modules Makefile), and link your "
359
344
"extension module using g++ (e.g., ``g++ -shared -o mymodule.so mymodule.o``)."
360
345
msgstr ""
361
346
362
- #: ../../faq/extending.rst:409
347
+ #: ../../faq/extending.rst:284
363
348
msgid ""
364
349
"Can I create an object class with some methods implemented in C and others "
365
350
"in Python (e.g. through inheritance)?"
366
351
msgstr ""
367
352
368
- #: ../../faq/extending.rst:411
353
+ #: ../../faq/extending.rst:286
369
354
msgid ""
370
355
"Yes, you can inherit from built-in classes such as :class:`int`, :class:"
371
356
"`list`, :class:`dict`, etc."
372
357
msgstr ""
373
358
374
- #: ../../faq/extending.rst:414
359
+ #: ../../faq/extending.rst:289
375
360
msgid ""
376
361
"The Boost Python Library (BPL, http://www.boost.org/libs/python/doc/index."
377
362
"html) provides a way of doing this from C++ (i.e. you can inherit from an "
0 commit comments