Skip to content

Sync with CPython 3.10 #172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Dec 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 46 additions & 44 deletions library/2to3.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.10\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-10-26 16:47+0000\n"
"POT-Creation-Date: 2021-12-14 00:10+0000\n"
"PO-Revision-Date: 2018-05-23 14:37+0000\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -197,11 +197,11 @@ msgstr ""
msgid "Replaces deprecated :mod:`unittest` method names with the correct ones."
msgstr ""

#: ../../library/2to3.rst:162 ../../library/2to3.rst:350
#: ../../library/2to3.rst:162 ../../library/2to3.rst:351
msgid "From"
msgstr "從"

#: ../../library/2to3.rst:162 ../../library/2to3.rst:350
#: ../../library/2to3.rst:162 ../../library/2to3.rst:351
msgid "To"
msgstr "到"

Expand Down Expand Up @@ -438,187 +438,189 @@ msgid ""
msgstr ""

#: ../../library/2to3.rst:336
msgid "Renames :meth:`__nonzero__` to :meth:`~object.__bool__`."
msgid ""
"Renames definitions of methods called :meth:`__nonzero__` to :meth:`~object."
"__bool__`."
msgstr ""

#: ../../library/2to3.rst:340
#: ../../library/2to3.rst:341
msgid "Converts octal literals into the new syntax."
msgstr ""

#: ../../library/2to3.rst:344
#: ../../library/2to3.rst:345
msgid ""
"Converts calls to various functions in the :mod:`operator` module to other, "
"but equivalent, function calls. When needed, the appropriate ``import`` "
"statements are added, e.g. ``import collections.abc``. The following "
"mapping are made:"
msgstr ""

#: ../../library/2to3.rst:352
#: ../../library/2to3.rst:353
msgid "``operator.isCallable(obj)``"
msgstr "``operator.isCallable(obj)``"

#: ../../library/2to3.rst:352
#: ../../library/2to3.rst:353
msgid "``callable(obj)``"
msgstr "``callable(obj)``"

#: ../../library/2to3.rst:353
#: ../../library/2to3.rst:354
msgid "``operator.sequenceIncludes(obj)``"
msgstr "``operator.sequenceIncludes(obj)``"

#: ../../library/2to3.rst:353
#: ../../library/2to3.rst:354
msgid "``operator.contains(obj)``"
msgstr "``operator.contains(obj)``"

#: ../../library/2to3.rst:354
#: ../../library/2to3.rst:355
msgid "``operator.isSequenceType(obj)``"
msgstr "``operator.isSequenceType(obj)``"

#: ../../library/2to3.rst:354
#: ../../library/2to3.rst:355
msgid "``isinstance(obj, collections.abc.Sequence)``"
msgstr "``isinstance(obj, collections.abc.Sequence)``"

#: ../../library/2to3.rst:355
#: ../../library/2to3.rst:356
msgid "``operator.isMappingType(obj)``"
msgstr "``operator.isMappingType(obj)``"

#: ../../library/2to3.rst:355
#: ../../library/2to3.rst:356
msgid "``isinstance(obj, collections.abc.Mapping)``"
msgstr "``isinstance(obj, collections.abc.Mapping)``"

#: ../../library/2to3.rst:356
#: ../../library/2to3.rst:357
msgid "``operator.isNumberType(obj)``"
msgstr "``operator.isNumberType(obj)``"

#: ../../library/2to3.rst:356
#: ../../library/2to3.rst:357
msgid "``isinstance(obj, numbers.Number)``"
msgstr "``isinstance(obj, numbers.Number)``"

#: ../../library/2to3.rst:357
#: ../../library/2to3.rst:358
msgid "``operator.repeat(obj, n)``"
msgstr "``operator.repeat(obj, n)``"

#: ../../library/2to3.rst:357
#: ../../library/2to3.rst:358
msgid "``operator.mul(obj, n)``"
msgstr "``operator.mul(obj, n)``"

#: ../../library/2to3.rst:358
#: ../../library/2to3.rst:359
msgid "``operator.irepeat(obj, n)``"
msgstr "``operator.irepeat(obj, n)``"

#: ../../library/2to3.rst:358
#: ../../library/2to3.rst:359
msgid "``operator.imul(obj, n)``"
msgstr "``operator.imul(obj, n)``"

#: ../../library/2to3.rst:363
#: ../../library/2to3.rst:364
msgid ""
"Add extra parenthesis where they are required in list comprehensions. For "
"example, ``[x for x in 1, 2]`` becomes ``[x for x in (1, 2)]``."
msgstr ""

#: ../../library/2to3.rst:368
#: ../../library/2to3.rst:369
msgid "Converts the ``print`` statement to the :func:`print` function."
msgstr ""

#: ../../library/2to3.rst:372
#: ../../library/2to3.rst:373
msgid ""
"Converts ``raise E, V`` to ``raise E(V)``, and ``raise E, V, T`` to ``raise "
"E(V).with_traceback(T)``. If ``E`` is a tuple, the translation will be "
"incorrect because substituting tuples for exceptions has been removed in 3.0."
msgstr ""

#: ../../library/2to3.rst:378
#: ../../library/2to3.rst:379
msgid "Converts :func:`raw_input` to :func:`input`."
msgstr ""

#: ../../library/2to3.rst:382
#: ../../library/2to3.rst:383
msgid "Handles the move of :func:`reduce` to :func:`functools.reduce`."
msgstr ""

#: ../../library/2to3.rst:386
#: ../../library/2to3.rst:387
msgid "Converts :func:`reload` to :func:`importlib.reload`."
msgstr ""

#: ../../library/2to3.rst:390
#: ../../library/2to3.rst:391
msgid "Changes :data:`sys.maxint` to :data:`sys.maxsize`."
msgstr ""

#: ../../library/2to3.rst:394
#: ../../library/2to3.rst:395
msgid "Replaces backtick repr with the :func:`repr` function."
msgstr ""

#: ../../library/2to3.rst:398
#: ../../library/2to3.rst:399
msgid ""
"Replaces use of the :class:`set` constructor with set literals. This fixer "
"is optional."
msgstr ""

#: ../../library/2to3.rst:403
#: ../../library/2to3.rst:404
msgid "Renames :exc:`StandardError` to :exc:`Exception`."
msgstr ""

#: ../../library/2to3.rst:407
#: ../../library/2to3.rst:408
msgid ""
"Changes the deprecated :data:`sys.exc_value`, :data:`sys.exc_type`, :data:"
"`sys.exc_traceback` to use :func:`sys.exc_info`."
msgstr ""

#: ../../library/2to3.rst:412
#: ../../library/2to3.rst:413
msgid "Fixes the API change in generator's :meth:`throw` method."
msgstr ""

#: ../../library/2to3.rst:416
#: ../../library/2to3.rst:417
msgid ""
"Removes implicit tuple parameter unpacking. This fixer inserts temporary "
"variables."
msgstr ""

#: ../../library/2to3.rst:421
#: ../../library/2to3.rst:422
msgid ""
"Fixes code broken from the removal of some members in the :mod:`types` "
"module."
msgstr ""

#: ../../library/2to3.rst:426
#: ../../library/2to3.rst:427
msgid "Renames :class:`unicode` to :class:`str`."
msgstr ""

#: ../../library/2to3.rst:430
#: ../../library/2to3.rst:431
msgid ""
"Handles the rename of :mod:`urllib` and :mod:`urllib2` to the :mod:`urllib` "
"package."
msgstr ""

#: ../../library/2to3.rst:435
#: ../../library/2to3.rst:436
msgid ""
"Removes excess whitespace from comma separated items. This fixer is "
"optional."
msgstr ""

#: ../../library/2to3.rst:440
#: ../../library/2to3.rst:441
msgid ""
"Renames :func:`xrange` to :func:`range` and wraps existing :func:`range` "
"calls with :class:`list`."
msgstr ""

#: ../../library/2to3.rst:445
#: ../../library/2to3.rst:446
msgid "Changes ``for x in file.xreadlines()`` to ``for x in file``."
msgstr ""

#: ../../library/2to3.rst:449
#: ../../library/2to3.rst:450
msgid ""
"Wraps :func:`zip` usage in a :class:`list` call. This is disabled when "
"``from future_builtins import zip`` appears."
msgstr ""

#: ../../library/2to3.rst:454
#: ../../library/2to3.rst:455
msgid ":mod:`lib2to3` - 2to3's library"
msgstr ""

#: ../../library/2to3.rst:463
#: ../../library/2to3.rst:464
msgid "**Source code:** :source:`Lib/lib2to3/`"
msgstr "**原始碼:**\\ :source:`Lib/lib2to3/`"

#: ../../library/2to3.rst:476
#: ../../library/2to3.rst:477
msgid ""
"Python 3.9 switched to a PEG parser (see :pep:`617`) while lib2to3 is using "
"a less flexible LL(1) parser. Python 3.10 includes new language syntax that "
Expand All @@ -630,7 +632,7 @@ msgid ""
"or `parso`_."
msgstr ""

#: ../../library/2to3.rst:479
#: ../../library/2to3.rst:480
msgid ""
"The :mod:`lib2to3` API should be considered unstable and may change "
"drastically in the future."
Expand Down
4 changes: 2 additions & 2 deletions library/asyncio-eventloop.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.10\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-12-02 00:09+0000\n"
"POT-Creation-Date: 2021-12-14 00:10+0000\n"
"PO-Revision-Date: 2018-05-23 14:38+0000\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -105,7 +105,7 @@ msgid "Set *loop* as a current event loop for the current OS thread."
msgstr ""

#: ../../library/asyncio-eventloop.rst:67
msgid "Create a new event loop object."
msgid "Create and return a new event loop object."
msgstr ""

#: ../../library/asyncio-eventloop.rst:69
Expand Down
4 changes: 2 additions & 2 deletions library/audit_events.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.10\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-09-13 00:11+0000\n"
"POT-Creation-Date: 2021-12-11 08:29+0000\n"
"PO-Revision-Date: 2021-12-06 21:50+0800\n"
"Last-Translator: Jordan Su <newjordansu1126@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
"Language: zh_TW\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Last-Translator: Jordan Su <newjordansu1126@gmail.com>\n"
"X-Generator: Poedit 3.0\n"

#: ../../library/audit_events.rst:6
Expand Down
9 changes: 4 additions & 5 deletions library/functions.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.10\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-11-23 00:09+0000\n"
"POT-Creation-Date: 2021-12-11 08:29+0000\n"
"PO-Revision-Date: 2018-11-10 18:27+0800\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -1443,10 +1443,9 @@ msgstr ""
#: ../../library/functions.rst:736
#, fuzzy
msgid ""
"Return a dictionary representing the current global symbol table. This is "
"always the dictionary of the current module (inside a function or method, "
"this is the module where it is defined, not the module from which it is "
"called)."
"Return the dictionary implementing the current module namespace. For code "
"within functions, this is set when the function is defined and remains the "
"same regardless of where the function is called."
msgstr ""
"返回表示當前全域性符號表的字典。這總是當前模組的字典(在函式或方法中,不是呼"
"叫它的模組,而是定義它的模組)。"
Expand Down
Loading