Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f7bd190

Browse filesBrowse files
pydoc-zh-tw[bot]github-actions[bot]mattwang44
authored
Sync with CPython 3.10 (#217)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Matt.Wang <mattwang44@gmail.com>
1 parent b03a542 commit f7bd190
Copy full SHA for f7bd190

File tree

Expand file treeCollapse file tree

7 files changed

+747
-748
lines changed
Filter options
Expand file treeCollapse file tree

7 files changed

+747
-748
lines changed

‎faq/extending.po

Copy file name to clipboardExpand all lines: faq/extending.po
+9-24Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.10\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2021-10-26 16:47+0000\n"
10+
"POT-Creation-Date: 2022-01-27 07:52+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:35+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -305,11 +305,11 @@ msgstr ""
305305
msgid "For Debian, run ``apt-get install python-dev``."
306306
msgstr ""
307307

308-
#: ../../faq/extending.rst:259
308+
#: ../../faq/extending.rst:258
309309
msgid "How do I tell \"incomplete input\" from \"invalid input\"?"
310310
msgstr ""
311311

312-
#: ../../faq/extending.rst:261
312+
#: ../../faq/extending.rst:260
313313
msgid ""
314314
"Sometimes you want to emulate the Python interactive interpreter's behavior, "
315315
"where it gives you a continuation prompt when the input is incomplete (e.g. "
@@ -318,13 +318,13 @@ msgid ""
318318
"message immediately when the input is invalid."
319319
msgstr ""
320320

321-
#: ../../faq/extending.rst:267
321+
#: ../../faq/extending.rst:266
322322
msgid ""
323323
"In Python you can use the :mod:`codeop` module, which approximates the "
324324
"parser's behavior sufficiently. IDLE uses this, for example."
325325
msgstr ""
326326

327-
#: ../../faq/extending.rst:270
327+
#: ../../faq/extending.rst:269
328328
msgid ""
329329
"The easiest way to do it in C is to call :c:func:`PyRun_InteractiveLoop` "
330330
"(perhaps in a separate thread) and let the Python interpreter handle the "
@@ -334,44 +334,29 @@ msgid ""
334334
msgstr ""
335335

336336
#: ../../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
352337
msgid "How do I find undefined g++ symbols __builtin_new or __pure_virtual?"
353338
msgstr ""
354339

355-
#: ../../faq/extending.rst:403
340+
#: ../../faq/extending.rst:278
356341
msgid ""
357342
"To dynamically load g++ extension modules, you must recompile Python, relink "
358343
"it using g++ (change LINKCC in the Python Modules Makefile), and link your "
359344
"extension module using g++ (e.g., ``g++ -shared -o mymodule.so mymodule.o``)."
360345
msgstr ""
361346

362-
#: ../../faq/extending.rst:409
347+
#: ../../faq/extending.rst:284
363348
msgid ""
364349
"Can I create an object class with some methods implemented in C and others "
365350
"in Python (e.g. through inheritance)?"
366351
msgstr ""
367352

368-
#: ../../faq/extending.rst:411
353+
#: ../../faq/extending.rst:286
369354
msgid ""
370355
"Yes, you can inherit from built-in classes such as :class:`int`, :class:"
371356
"`list`, :class:`dict`, etc."
372357
msgstr ""
373358

374-
#: ../../faq/extending.rst:414
359+
#: ../../faq/extending.rst:289
375360
msgid ""
376361
"The Boost Python Library (BPL, http://www.boost.org/libs/python/doc/index."
377362
"html) provides a way of doing this from C++ (i.e. you can inherit from an "

‎library/asyncio-task.po

Copy file name to clipboardExpand all lines: library/asyncio-task.po
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.10\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2021-11-17 00:09+0000\n"
10+
"POT-Creation-Date: 2022-02-05 00:08+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:39+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -985,8 +985,8 @@ msgstr ""
985985

986986
#: ../../library/asyncio-task.rst:1059
987987
msgid ""
988-
"Support for generator-based coroutines is **deprecated** and is scheduled "
989-
"for removal in Python 3.10."
988+
"Support for generator-based coroutines is **deprecated** and is removed in "
989+
"Python 3.11."
990990
msgstr ""
991991

992992
#: ../../library/asyncio-task.rst:1062

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.