Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Sync with CPython 3.10#192

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mattwang44 merged 6 commits into3.10fromcron/sync/3.10
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes fromall 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
47 changes: 24 additions & 23 deletionslibrary/concurrent.futures.po
View file
Open in desktop
Original file line numberDiff line numberDiff 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-09-13 00:11+0000\n"
"POT-Creation-Date:2022-01-05 00:10+0000\n"
"PO-Revision-Date: 2018-05-23 14:41+0000\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand DownExpand Up@@ -56,7 +56,7 @@ msgstr ""

#: ../../library/concurrent.futures.rst:33
msgid ""
"Schedules the callable, *fn*, to be executed as ``fn(*args **kwargs)`` and "
"Schedules the callable, *fn*, to be executed as ``fn(*args, **kwargs)`` and "
"returns a :class:`Future` object representing the execution of the "
"callable. ::"
msgstr ""
Expand DownExpand Up@@ -455,62 +455,63 @@ msgstr "模組函式"
#: ../../library/concurrent.futures.rst:437
msgid ""
"Wait for the :class:`Future` instances (possibly created by different :class:"
"`Executor` instances) given by *fs* to complete. Returns a named 2-tuple of "
"`Executor` instances) given by *fs* to complete. Duplicate futures given to "
"*fs* are removed and will be returned only once. Returns a named 2-tuple of "
"sets. The first set, named ``done``, contains the futures that completed "
"(finished or cancelled futures) before the wait completed. The second set, "
"named ``not_done``, contains the futures that did not complete (pending or "
"running futures)."
msgstr ""

#: ../../library/concurrent.futures.rst:444
#: ../../library/concurrent.futures.rst:445
msgid ""
"*timeout* can be used to control the maximum number of seconds to wait "
"before returning. *timeout* can be an int or float. If *timeout* is not "
"specified or ``None``, there is no limit to the wait time."
msgstr ""

#: ../../library/concurrent.futures.rst:448
#: ../../library/concurrent.futures.rst:449
msgid ""
"*return_when* indicates when this function should return. It must be one of "
"the following constants:"
msgstr ""

#: ../../library/concurrent.futures.rst:454
#: ../../library/concurrent.futures.rst:455
msgid "Constant"
msgstr "常數"

#: ../../library/concurrent.futures.rst:454
#: ../../library/concurrent.futures.rst:455
msgid "Description"
msgstr "描述"

#: ../../library/concurrent.futures.rst:456
#: ../../library/concurrent.futures.rst:457
msgid ":const:`FIRST_COMPLETED`"
msgstr ":const:`FIRST_COMPLETED`"

#: ../../library/concurrent.futures.rst:456
#: ../../library/concurrent.futures.rst:457
msgid "The function will return when any future finishes or is cancelled."
msgstr ""

#: ../../library/concurrent.futures.rst:459
#: ../../library/concurrent.futures.rst:460
msgid ":const:`FIRST_EXCEPTION`"
msgstr ":const:`FIRST_EXCEPTION`"

#: ../../library/concurrent.futures.rst:459
#: ../../library/concurrent.futures.rst:460
msgid ""
"The function will return when any future finishes by raising an exception. "
"If no future raises an exception then it is equivalent to :const:"
"`ALL_COMPLETED`."
msgstr ""

#: ../../library/concurrent.futures.rst:465
#: ../../library/concurrent.futures.rst:466
msgid ":const:`ALL_COMPLETED`"
msgstr ":const:`ALL_COMPLETED`"

#: ../../library/concurrent.futures.rst:465
#: ../../library/concurrent.futures.rst:466
msgid "The function will return when all futures finish or are cancelled."
msgstr ""

#: ../../library/concurrent.futures.rst:471
#: ../../library/concurrent.futures.rst:472
msgid ""
"Returns an iterator over the :class:`Future` instances (possibly created by "
"different :class:`Executor` instances) given by *fs* that yields futures as "
Expand All@@ -524,49 +525,49 @@ msgid ""
"wait time."
msgstr ""

#: ../../library/concurrent.futures.rst:485
#: ../../library/concurrent.futures.rst:486
msgid ":pep:`3148` -- futures - execute computations asynchronously"
msgstr ""

#: ../../library/concurrent.futures.rst:485
#: ../../library/concurrent.futures.rst:486
msgid ""
"The proposal which described this feature for inclusion in the Python "
"standard library."
msgstr ""

#: ../../library/concurrent.futures.rst:490
#: ../../library/concurrent.futures.rst:491
msgid "Exception classes"
msgstr ""

#: ../../library/concurrent.futures.rst:496
#: ../../library/concurrent.futures.rst:497
msgid "Raised when a future is cancelled."
msgstr ""

#: ../../library/concurrent.futures.rst:500
#: ../../library/concurrent.futures.rst:501
msgid "Raised when a future operation exceeds the given timeout."
msgstr ""

#: ../../library/concurrent.futures.rst:504
#: ../../library/concurrent.futures.rst:505
msgid ""
"Derived from :exc:`RuntimeError`, this exception class is raised when an "
"executor is broken for some reason, and cannot be used to submit or execute "
"new tasks."
msgstr ""

#: ../../library/concurrent.futures.rst:512
#: ../../library/concurrent.futures.rst:513
msgid ""
"Raised when an operation is performed on a future that is not allowed in the "
"current state."
msgstr ""

#: ../../library/concurrent.futures.rst:521
#: ../../library/concurrent.futures.rst:522
msgid ""
"Derived from :exc:`~concurrent.futures.BrokenExecutor`, this exception class "
"is raised when one of the workers of a :class:`ThreadPoolExecutor` has "
"failed initializing."
msgstr ""

#: ../../library/concurrent.futures.rst:531
#: ../../library/concurrent.futures.rst:532
msgid ""
"Derived from :exc:`~concurrent.futures.BrokenExecutor` (formerly :exc:"
"`RuntimeError`), this exception class is raised when one of the workers of "
Expand Down
20 changes: 10 additions & 10 deletionslibrary/dataclasses.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.10\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date:2021-11-30 00:09+0000\n"
"POT-Creation-Date:2022-01-09 00:10+0000\n"
"PO-Revision-Date: 2018-07-15 18:56+0800\n"
"Last-Translator: \n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand DownExpand Up@@ -396,7 +396,7 @@ msgstr ""

#: ../../library/dataclasses.rst:324
msgid ""
"Converts the dataclass ``instance`` to a dict (by using the factory function "
"Converts the dataclass ``obj`` to a dict (by using the factory function "
"``dict_factory``). Each dataclass is converted to a dict of its fields, as "
"``name: value`` pairs. dataclasses, dicts, lists, and tuples are recursed "
"into. Other objects are copied with :func:`copy.deepcopy`."
Expand All@@ -412,16 +412,16 @@ msgstr ""

#: ../../library/dataclasses.rst:351
msgid ""
":func:`asdict` raises :exc:`TypeError` if ``instance`` is not a dataclass "
":func:`asdict` raises :exc:`TypeError` if ``obj`` is not a dataclass "
"instance."
msgstr ""

#: ../../library/dataclasses.rst:356
msgid ""
"Converts the dataclass ``instance`` to a tuple (by using the factory "
"function``tuple_factory``). Each dataclass is converted to a tuple of its "
"fieldvalues. dataclasses, dicts, lists, and tuples are recursed into. "
"Otherobjects are copied with :func:`copy.deepcopy`."
"Converts the dataclass ``obj`` to a tuple (by using the factory function "
"``tuple_factory``). Each dataclass is converted to a tuple of its field "
"values. dataclasses, dicts, lists, and tuples are recursed into. Other "
"objects are copied with :func:`copy.deepcopy`."
msgstr ""

#: ../../library/dataclasses.rst:362
Expand All@@ -430,7 +430,7 @@ msgstr ""

#: ../../library/dataclasses.rst:371
msgid ""
":func:`astuple` raises :exc:`TypeError` if ``instance`` is not a dataclass "
":func:`astuple` raises :exc:`TypeError` if ``obj`` is not a dataclass "
"instance."
msgstr ""

Expand DownExpand Up@@ -460,8 +460,8 @@ msgstr ""

#: ../../library/dataclasses.rst:411
msgid ""
"Creates a new object of the same type as ``instance``, replacing fields with "
"values from ``changes``. If ``instance`` is not a Data Class, raises :exc:"
"Creates a new object of the same type as ``obj``, replacing fields with "
"values from ``changes``. If ``obj`` is not a Data Class, raises :exc:"
"`TypeError`. If values in ``changes`` do not specify fields, raises :exc:"
"`TypeError`."
msgstr ""
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp