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 6c8da1b

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

File tree

Expand file treeCollapse file tree

10 files changed

+615
-590
lines changed
Filter options
Expand file treeCollapse file tree

10 files changed

+615
-590
lines changed

‎library/concurrent.futures.po

Copy file name to clipboardExpand all lines: library/concurrent.futures.po
+24-23Lines changed: 24 additions & 23 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-09-13 00:11+0000\n"
10+
"POT-Creation-Date: 2022-01-05 00:10+0000\n"
1111
"PO-Revision-Date: 2018-05-23 14:41+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -56,7 +56,7 @@ msgstr ""
5656

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

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

472-
#: ../../library/concurrent.futures.rst:448
473+
#: ../../library/concurrent.futures.rst:449
473474
msgid ""
474475
"*return_when* indicates when this function should return. It must be one of "
475476
"the following constants:"
476477
msgstr ""
477478

478-
#: ../../library/concurrent.futures.rst:454
479+
#: ../../library/concurrent.futures.rst:455
479480
msgid "Constant"
480481
msgstr "常數"
481482

482-
#: ../../library/concurrent.futures.rst:454
483+
#: ../../library/concurrent.futures.rst:455
483484
msgid "Description"
484485
msgstr "描述"
485486

486-
#: ../../library/concurrent.futures.rst:456
487+
#: ../../library/concurrent.futures.rst:457
487488
msgid ":const:`FIRST_COMPLETED`"
488489
msgstr ":const:`FIRST_COMPLETED`"
489490

490-
#: ../../library/concurrent.futures.rst:456
491+
#: ../../library/concurrent.futures.rst:457
491492
msgid "The function will return when any future finishes or is cancelled."
492493
msgstr ""
493494

494-
#: ../../library/concurrent.futures.rst:459
495+
#: ../../library/concurrent.futures.rst:460
495496
msgid ":const:`FIRST_EXCEPTION`"
496497
msgstr ":const:`FIRST_EXCEPTION`"
497498

498-
#: ../../library/concurrent.futures.rst:459
499+
#: ../../library/concurrent.futures.rst:460
499500
msgid ""
500501
"The function will return when any future finishes by raising an exception. "
501502
"If no future raises an exception then it is equivalent to :const:"
502503
"`ALL_COMPLETED`."
503504
msgstr ""
504505

505-
#: ../../library/concurrent.futures.rst:465
506+
#: ../../library/concurrent.futures.rst:466
506507
msgid ":const:`ALL_COMPLETED`"
507508
msgstr ":const:`ALL_COMPLETED`"
508509

509-
#: ../../library/concurrent.futures.rst:465
510+
#: ../../library/concurrent.futures.rst:466
510511
msgid "The function will return when all futures finish or are cancelled."
511512
msgstr ""
512513

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

527-
#: ../../library/concurrent.futures.rst:485
528+
#: ../../library/concurrent.futures.rst:486
528529
msgid ":pep:`3148` -- futures - execute computations asynchronously"
529530
msgstr ""
530531

531-
#: ../../library/concurrent.futures.rst:485
532+
#: ../../library/concurrent.futures.rst:486
532533
msgid ""
533534
"The proposal which described this feature for inclusion in the Python "
534535
"standard library."
535536
msgstr ""
536537

537-
#: ../../library/concurrent.futures.rst:490
538+
#: ../../library/concurrent.futures.rst:491
538539
msgid "Exception classes"
539540
msgstr ""
540541

541-
#: ../../library/concurrent.futures.rst:496
542+
#: ../../library/concurrent.futures.rst:497
542543
msgid "Raised when a future is cancelled."
543544
msgstr ""
544545

545-
#: ../../library/concurrent.futures.rst:500
546+
#: ../../library/concurrent.futures.rst:501
546547
msgid "Raised when a future operation exceeds the given timeout."
547548
msgstr ""
548549

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

556-
#: ../../library/concurrent.futures.rst:512
557+
#: ../../library/concurrent.futures.rst:513
557558
msgid ""
558559
"Raised when an operation is performed on a future that is not allowed in the "
559560
"current state."
560561
msgstr ""
561562

562-
#: ../../library/concurrent.futures.rst:521
563+
#: ../../library/concurrent.futures.rst:522
563564
msgid ""
564565
"Derived from :exc:`~concurrent.futures.BrokenExecutor`, this exception class "
565566
"is raised when one of the workers of a :class:`ThreadPoolExecutor` has "
566567
"failed initializing."
567568
msgstr ""
568569

569-
#: ../../library/concurrent.futures.rst:531
570+
#: ../../library/concurrent.futures.rst:532
570571
msgid ""
571572
"Derived from :exc:`~concurrent.futures.BrokenExecutor` (formerly :exc:"
572573
"`RuntimeError`), this exception class is raised when one of the workers of "

‎library/dataclasses.po

Copy file name to clipboardExpand all lines: library/dataclasses.po
+10-10Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgid ""
55
msgstr ""
66
"Project-Id-Version: Python 3.10\n"
77
"Report-Msgid-Bugs-To: \n"
8-
"POT-Creation-Date: 2021-11-30 00:09+0000\n"
8+
"POT-Creation-Date: 2022-01-09 00:10+0000\n"
99
"PO-Revision-Date: 2018-07-15 18:56+0800\n"
1010
"Last-Translator: \n"
1111
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -396,7 +396,7 @@ msgstr ""
396396

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

413413
#: ../../library/dataclasses.rst:351
414414
msgid ""
415-
":func:`asdict` raises :exc:`TypeError` if ``instance`` is not a dataclass "
415+
":func:`asdict` raises :exc:`TypeError` if ``obj`` is not a dataclass "
416416
"instance."
417417
msgstr ""
418418

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

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

431431
#: ../../library/dataclasses.rst:371
432432
msgid ""
433-
":func:`astuple` raises :exc:`TypeError` if ``instance`` is not a dataclass "
433+
":func:`astuple` raises :exc:`TypeError` if ``obj`` is not a dataclass "
434434
"instance."
435435
msgstr ""
436436

@@ -460,8 +460,8 @@ msgstr ""
460460

461461
#: ../../library/dataclasses.rst:411
462462
msgid ""
463-
"Creates a new object of the same type as ``instance``, replacing fields with "
464-
"values from ``changes``. If ``instance`` is not a Data Class, raises :exc:"
463+
"Creates a new object of the same type as ``obj``, replacing fields with "
464+
"values from ``changes``. If ``obj`` is not a Data Class, raises :exc:"
465465
"`TypeError`. If values in ``changes`` do not specify fields, raises :exc:"
466466
"`TypeError`."
467467
msgstr ""

0 commit comments

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