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

Commit1a0e8a1

Browse files
Sync with CPython 3.10 (#172)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent3937f38 commit1a0e8a1

File tree

8 files changed

+944
-906
lines changed

8 files changed

+944
-906
lines changed

‎library/2to3.po

Lines changed: 46 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version:Python 3.10\n"
1010
"Report-Msgid-Bugs-To:\n"
11-
"POT-Creation-Date:2021-10-26 16:47+0000\n"
11+
"POT-Creation-Date:2021-12-14 00:10+0000\n"
1212
"PO-Revision-Date:2018-05-23 14:37+0000\n"
1313
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -197,11 +197,11 @@ msgstr ""
197197
msgid"Replaces deprecated :mod:`unittest` method names with the correct ones."
198198
msgstr""
199199

200-
#:../../library/2to3.rst:162../../library/2to3.rst:350
200+
#:../../library/2to3.rst:162../../library/2to3.rst:351
201201
msgid"From"
202202
msgstr"從"
203203

204-
#:../../library/2to3.rst:162../../library/2to3.rst:350
204+
#:../../library/2to3.rst:162../../library/2to3.rst:351
205205
msgid"To"
206206
msgstr"到"
207207

@@ -438,187 +438,189 @@ msgid ""
438438
msgstr""
439439

440440
#:../../library/2to3.rst:336
441-
msgid"Renames :meth:`__nonzero__` to :meth:`~object.__bool__`."
441+
msgid""
442+
"Renames definitions of methods called :meth:`__nonzero__` to :meth:`~object."
443+
"__bool__`."
442444
msgstr""
443445

444-
#:../../library/2to3.rst:340
446+
#:../../library/2to3.rst:341
445447
msgid"Converts octal literals into the new syntax."
446448
msgstr""
447449

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

456-
#:../../library/2to3.rst:352
458+
#:../../library/2to3.rst:353
457459
msgid"``operator.isCallable(obj)``"
458460
msgstr"``operator.isCallable(obj)``"
459461

460-
#:../../library/2to3.rst:352
462+
#:../../library/2to3.rst:353
461463
msgid"``callable(obj)``"
462464
msgstr"``callable(obj)``"
463465

464-
#:../../library/2to3.rst:353
466+
#:../../library/2to3.rst:354
465467
msgid"``operator.sequenceIncludes(obj)``"
466468
msgstr"``operator.sequenceIncludes(obj)``"
467469

468-
#:../../library/2to3.rst:353
470+
#:../../library/2to3.rst:354
469471
msgid"``operator.contains(obj)``"
470472
msgstr"``operator.contains(obj)``"
471473

472-
#:../../library/2to3.rst:354
474+
#:../../library/2to3.rst:355
473475
msgid"``operator.isSequenceType(obj)``"
474476
msgstr"``operator.isSequenceType(obj)``"
475477

476-
#:../../library/2to3.rst:354
478+
#:../../library/2to3.rst:355
477479
msgid"``isinstance(obj, collections.abc.Sequence)``"
478480
msgstr"``isinstance(obj, collections.abc.Sequence)``"
479481

480-
#:../../library/2to3.rst:355
482+
#:../../library/2to3.rst:356
481483
msgid"``operator.isMappingType(obj)``"
482484
msgstr"``operator.isMappingType(obj)``"
483485

484-
#:../../library/2to3.rst:355
486+
#:../../library/2to3.rst:356
485487
msgid"``isinstance(obj, collections.abc.Mapping)``"
486488
msgstr"``isinstance(obj, collections.abc.Mapping)``"
487489

488-
#:../../library/2to3.rst:356
490+
#:../../library/2to3.rst:357
489491
msgid"``operator.isNumberType(obj)``"
490492
msgstr"``operator.isNumberType(obj)``"
491493

492-
#:../../library/2to3.rst:356
494+
#:../../library/2to3.rst:357
493495
msgid"``isinstance(obj, numbers.Number)``"
494496
msgstr"``isinstance(obj, numbers.Number)``"
495497

496-
#:../../library/2to3.rst:357
498+
#:../../library/2to3.rst:358
497499
msgid"``operator.repeat(obj, n)``"
498500
msgstr"``operator.repeat(obj, n)``"
499501

500-
#:../../library/2to3.rst:357
502+
#:../../library/2to3.rst:358
501503
msgid"``operator.mul(obj, n)``"
502504
msgstr"``operator.mul(obj, n)``"
503505

504-
#:../../library/2to3.rst:358
506+
#:../../library/2to3.rst:359
505507
msgid"``operator.irepeat(obj, n)``"
506508
msgstr"``operator.irepeat(obj, n)``"
507509

508-
#:../../library/2to3.rst:358
510+
#:../../library/2to3.rst:359
509511
msgid"``operator.imul(obj, n)``"
510512
msgstr"``operator.imul(obj, n)``"
511513

512-
#:../../library/2to3.rst:363
514+
#:../../library/2to3.rst:364
513515
msgid""
514516
"Add extra parenthesis where they are required in list comprehensions. For "
515517
"example, ``[x for x in 1, 2]`` becomes ``[x for x in (1, 2)]``."
516518
msgstr""
517519

518-
#:../../library/2to3.rst:368
520+
#:../../library/2to3.rst:369
519521
msgid"Converts the ``print`` statement to the :func:`print` function."
520522
msgstr""
521523

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

529-
#:../../library/2to3.rst:378
531+
#:../../library/2to3.rst:379
530532
msgid"Converts :func:`raw_input` to :func:`input`."
531533
msgstr""
532534

533-
#:../../library/2to3.rst:382
535+
#:../../library/2to3.rst:383
534536
msgid"Handles the move of :func:`reduce` to :func:`functools.reduce`."
535537
msgstr""
536538

537-
#:../../library/2to3.rst:386
539+
#:../../library/2to3.rst:387
538540
msgid"Converts :func:`reload` to :func:`importlib.reload`."
539541
msgstr""
540542

541-
#:../../library/2to3.rst:390
543+
#:../../library/2to3.rst:391
542544
msgid"Changes :data:`sys.maxint` to :data:`sys.maxsize`."
543545
msgstr""
544546

545-
#:../../library/2to3.rst:394
547+
#:../../library/2to3.rst:395
546548
msgid"Replaces backtick repr with the :func:`repr` function."
547549
msgstr""
548550

549-
#:../../library/2to3.rst:398
551+
#:../../library/2to3.rst:399
550552
msgid""
551553
"Replaces use of the :class:`set` constructor with set literals. This fixer "
552554
"is optional."
553555
msgstr""
554556

555-
#:../../library/2to3.rst:403
557+
#:../../library/2to3.rst:404
556558
msgid"Renames :exc:`StandardError` to :exc:`Exception`."
557559
msgstr""
558560

559-
#:../../library/2to3.rst:407
561+
#:../../library/2to3.rst:408
560562
msgid""
561563
"Changes the deprecated :data:`sys.exc_value`, :data:`sys.exc_type`, :data:"
562564
"`sys.exc_traceback` to use :func:`sys.exc_info`."
563565
msgstr""
564566

565-
#:../../library/2to3.rst:412
567+
#:../../library/2to3.rst:413
566568
msgid"Fixes the API change in generator's :meth:`throw` method."
567569
msgstr""
568570

569-
#:../../library/2to3.rst:416
571+
#:../../library/2to3.rst:417
570572
msgid""
571573
"Removes implicit tuple parameter unpacking. This fixer inserts temporary "
572574
"variables."
573575
msgstr""
574576

575-
#:../../library/2to3.rst:421
577+
#:../../library/2to3.rst:422
576578
msgid""
577579
"Fixes code broken from the removal of some members in the :mod:`types` "
578580
"module."
579581
msgstr""
580582

581-
#:../../library/2to3.rst:426
583+
#:../../library/2to3.rst:427
582584
msgid"Renames :class:`unicode` to :class:`str`."
583585
msgstr""
584586

585-
#:../../library/2to3.rst:430
587+
#:../../library/2to3.rst:431
586588
msgid""
587589
"Handles the rename of :mod:`urllib` and :mod:`urllib2` to the :mod:`urllib` "
588590
"package."
589591
msgstr""
590592

591-
#:../../library/2to3.rst:435
593+
#:../../library/2to3.rst:436
592594
msgid""
593595
"Removes excess whitespace from comma separated items. This fixer is "
594596
"optional."
595597
msgstr""
596598

597-
#:../../library/2to3.rst:440
599+
#:../../library/2to3.rst:441
598600
msgid""
599601
"Renames :func:`xrange` to :func:`range` and wraps existing :func:`range` "
600602
"calls with :class:`list`."
601603
msgstr""
602604

603-
#:../../library/2to3.rst:445
605+
#:../../library/2to3.rst:446
604606
msgid"Changes ``for x in file.xreadlines()`` to ``for x in file``."
605607
msgstr""
606608

607-
#:../../library/2to3.rst:449
609+
#:../../library/2to3.rst:450
608610
msgid""
609611
"Wraps :func:`zip` usage in a :class:`list` call. This is disabled when "
610612
"``from future_builtins import zip`` appears."
611613
msgstr""
612614

613-
#:../../library/2to3.rst:454
615+
#:../../library/2to3.rst:455
614616
msgid":mod:`lib2to3` - 2to3's library"
615617
msgstr""
616618

617-
#:../../library/2to3.rst:463
619+
#:../../library/2to3.rst:464
618620
msgid"**Source code:** :source:`Lib/lib2to3/`"
619621
msgstr"**原始碼:**\\ :source:`Lib/lib2to3/`"
620622

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

633-
#:../../library/2to3.rst:479
635+
#:../../library/2to3.rst:480
634636
msgid""
635637
"The :mod:`lib2to3` API should be considered unstable and may change "
636638
"drastically in the future."

‎library/asyncio-eventloop.po

Lines changed: 2 additions & 2 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-12-02 00:09+0000\n"
10+
"POT-Creation-Date:2021-12-14 00:10+0000\n"
1111
"PO-Revision-Date:2018-05-23 14:38+0000\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -105,7 +105,7 @@ msgid "Set *loop* as a current event loop for the current OS thread."
105105
msgstr""
106106

107107
#:../../library/asyncio-eventloop.rst:67
108-
msgid"Create a new event loop object."
108+
msgid"Createand returna new event loop object."
109109
msgstr""
110110

111111
#:../../library/asyncio-eventloop.rst:69

‎library/audit_events.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ 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:2021-12-11 08:29+0000\n"
1111
"PO-Revision-Date:2021-12-06 21:50+0800\n"
12+
"Last-Translator:Jordan Su <newjordansu1126@gmail.com>\n"
1213
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1314
"tw)\n"
1415
"Language:zh_TW\n"
1516
"MIME-Version:1.0\n"
1617
"Content-Type:text/plain; charset=UTF-8\n"
1718
"Content-Transfer-Encoding:8bit\n"
18-
"Last-Translator:Jordan Su <newjordansu1126@gmail.com>\n"
1919
"X-Generator:Poedit 3.0\n"
2020

2121
#:../../library/audit_events.rst:6

‎library/functions.po

Lines changed: 4 additions & 5 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-23 00:09+0000\n"
10+
"POT-Creation-Date:2021-12-11 08:29+0000\n"
1111
"PO-Revision-Date:2018-11-10 18:27+0800\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -1443,10 +1443,9 @@ msgstr ""
14431443
#:../../library/functions.rst:736
14441444
#,fuzzy
14451445
msgid""
1446-
"Return a dictionary representing the current global symbol table. This is "
1447-
"always the dictionary of the current module (inside a function or method, "
1448-
"this is the module where it is defined, not the module from which it is "
1449-
"called)."
1446+
"Return the dictionary implementing the current module namespace. For code "
1447+
"within functions, this is set when the function is defined and remains the "
1448+
"same regardless of where the function is called."
14501449
msgstr""
14511450
"返回表示當前全域性符號表的字典。這總是當前模組的字典(在函式或方法中,不是呼"
14521451
"叫它的模組,而是定義它的模組)。"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp