8
8
msgstr ""
9
9
"Project-Id-Version : Python 3.10\n "
10
10
"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 "
12
12
"PO-Revision-Date : 2018-05-23 14:37+0000\n "
13
13
"
Last-Translator :
Adrian Liaw <[email protected] >\n "
14
14
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -197,11 +197,11 @@ msgstr ""
197
197
msgid "Replaces deprecated :mod:`unittest` method names with the correct ones."
198
198
msgstr ""
199
199
200
- #: ../../library/2to3.rst:162 ../../library/2to3.rst:350
200
+ #: ../../library/2to3.rst:162 ../../library/2to3.rst:351
201
201
msgid "From"
202
202
msgstr "從"
203
203
204
- #: ../../library/2to3.rst:162 ../../library/2to3.rst:350
204
+ #: ../../library/2to3.rst:162 ../../library/2to3.rst:351
205
205
msgid "To"
206
206
msgstr "到"
207
207
@@ -438,187 +438,189 @@ msgid ""
438
438
msgstr ""
439
439
440
440
#: ../../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__`."
442
444
msgstr ""
443
445
444
- #: ../../library/2to3.rst:340
446
+ #: ../../library/2to3.rst:341
445
447
msgid "Converts octal literals into the new syntax."
446
448
msgstr ""
447
449
448
- #: ../../library/2to3.rst:344
450
+ #: ../../library/2to3.rst:345
449
451
msgid ""
450
452
"Converts calls to various functions in the :mod:`operator` module to other, "
451
453
"but equivalent, function calls. When needed, the appropriate ``import`` "
452
454
"statements are added, e.g. ``import collections.abc``. The following "
453
455
"mapping are made:"
454
456
msgstr ""
455
457
456
- #: ../../library/2to3.rst:352
458
+ #: ../../library/2to3.rst:353
457
459
msgid "``operator.isCallable(obj)``"
458
460
msgstr "``operator.isCallable(obj)``"
459
461
460
- #: ../../library/2to3.rst:352
462
+ #: ../../library/2to3.rst:353
461
463
msgid "``callable(obj)``"
462
464
msgstr "``callable(obj)``"
463
465
464
- #: ../../library/2to3.rst:353
466
+ #: ../../library/2to3.rst:354
465
467
msgid "``operator.sequenceIncludes(obj)``"
466
468
msgstr "``operator.sequenceIncludes(obj)``"
467
469
468
- #: ../../library/2to3.rst:353
470
+ #: ../../library/2to3.rst:354
469
471
msgid "``operator.contains(obj)``"
470
472
msgstr "``operator.contains(obj)``"
471
473
472
- #: ../../library/2to3.rst:354
474
+ #: ../../library/2to3.rst:355
473
475
msgid "``operator.isSequenceType(obj)``"
474
476
msgstr "``operator.isSequenceType(obj)``"
475
477
476
- #: ../../library/2to3.rst:354
478
+ #: ../../library/2to3.rst:355
477
479
msgid "``isinstance(obj, collections.abc.Sequence)``"
478
480
msgstr "``isinstance(obj, collections.abc.Sequence)``"
479
481
480
- #: ../../library/2to3.rst:355
482
+ #: ../../library/2to3.rst:356
481
483
msgid "``operator.isMappingType(obj)``"
482
484
msgstr "``operator.isMappingType(obj)``"
483
485
484
- #: ../../library/2to3.rst:355
486
+ #: ../../library/2to3.rst:356
485
487
msgid "``isinstance(obj, collections.abc.Mapping)``"
486
488
msgstr "``isinstance(obj, collections.abc.Mapping)``"
487
489
488
- #: ../../library/2to3.rst:356
490
+ #: ../../library/2to3.rst:357
489
491
msgid "``operator.isNumberType(obj)``"
490
492
msgstr "``operator.isNumberType(obj)``"
491
493
492
- #: ../../library/2to3.rst:356
494
+ #: ../../library/2to3.rst:357
493
495
msgid "``isinstance(obj, numbers.Number)``"
494
496
msgstr "``isinstance(obj, numbers.Number)``"
495
497
496
- #: ../../library/2to3.rst:357
498
+ #: ../../library/2to3.rst:358
497
499
msgid "``operator.repeat(obj, n)``"
498
500
msgstr "``operator.repeat(obj, n)``"
499
501
500
- #: ../../library/2to3.rst:357
502
+ #: ../../library/2to3.rst:358
501
503
msgid "``operator.mul(obj, n)``"
502
504
msgstr "``operator.mul(obj, n)``"
503
505
504
- #: ../../library/2to3.rst:358
506
+ #: ../../library/2to3.rst:359
505
507
msgid "``operator.irepeat(obj, n)``"
506
508
msgstr "``operator.irepeat(obj, n)``"
507
509
508
- #: ../../library/2to3.rst:358
510
+ #: ../../library/2to3.rst:359
509
511
msgid "``operator.imul(obj, n)``"
510
512
msgstr "``operator.imul(obj, n)``"
511
513
512
- #: ../../library/2to3.rst:363
514
+ #: ../../library/2to3.rst:364
513
515
msgid ""
514
516
"Add extra parenthesis where they are required in list comprehensions. For "
515
517
"example, ``[x for x in 1, 2]`` becomes ``[x for x in (1, 2)]``."
516
518
msgstr ""
517
519
518
- #: ../../library/2to3.rst:368
520
+ #: ../../library/2to3.rst:369
519
521
msgid "Converts the ``print`` statement to the :func:`print` function."
520
522
msgstr ""
521
523
522
- #: ../../library/2to3.rst:372
524
+ #: ../../library/2to3.rst:373
523
525
msgid ""
524
526
"Converts ``raise E, V`` to ``raise E(V)``, and ``raise E, V, T`` to ``raise "
525
527
"E(V).with_traceback(T)``. If ``E`` is a tuple, the translation will be "
526
528
"incorrect because substituting tuples for exceptions has been removed in 3.0."
527
529
msgstr ""
528
530
529
- #: ../../library/2to3.rst:378
531
+ #: ../../library/2to3.rst:379
530
532
msgid "Converts :func:`raw_input` to :func:`input`."
531
533
msgstr ""
532
534
533
- #: ../../library/2to3.rst:382
535
+ #: ../../library/2to3.rst:383
534
536
msgid "Handles the move of :func:`reduce` to :func:`functools.reduce`."
535
537
msgstr ""
536
538
537
- #: ../../library/2to3.rst:386
539
+ #: ../../library/2to3.rst:387
538
540
msgid "Converts :func:`reload` to :func:`importlib.reload`."
539
541
msgstr ""
540
542
541
- #: ../../library/2to3.rst:390
543
+ #: ../../library/2to3.rst:391
542
544
msgid "Changes :data:`sys.maxint` to :data:`sys.maxsize`."
543
545
msgstr ""
544
546
545
- #: ../../library/2to3.rst:394
547
+ #: ../../library/2to3.rst:395
546
548
msgid "Replaces backtick repr with the :func:`repr` function."
547
549
msgstr ""
548
550
549
- #: ../../library/2to3.rst:398
551
+ #: ../../library/2to3.rst:399
550
552
msgid ""
551
553
"Replaces use of the :class:`set` constructor with set literals. This fixer "
552
554
"is optional."
553
555
msgstr ""
554
556
555
- #: ../../library/2to3.rst:403
557
+ #: ../../library/2to3.rst:404
556
558
msgid "Renames :exc:`StandardError` to :exc:`Exception`."
557
559
msgstr ""
558
560
559
- #: ../../library/2to3.rst:407
561
+ #: ../../library/2to3.rst:408
560
562
msgid ""
561
563
"Changes the deprecated :data:`sys.exc_value`, :data:`sys.exc_type`, :data:"
562
564
"`sys.exc_traceback` to use :func:`sys.exc_info`."
563
565
msgstr ""
564
566
565
- #: ../../library/2to3.rst:412
567
+ #: ../../library/2to3.rst:413
566
568
msgid "Fixes the API change in generator's :meth:`throw` method."
567
569
msgstr ""
568
570
569
- #: ../../library/2to3.rst:416
571
+ #: ../../library/2to3.rst:417
570
572
msgid ""
571
573
"Removes implicit tuple parameter unpacking. This fixer inserts temporary "
572
574
"variables."
573
575
msgstr ""
574
576
575
- #: ../../library/2to3.rst:421
577
+ #: ../../library/2to3.rst:422
576
578
msgid ""
577
579
"Fixes code broken from the removal of some members in the :mod:`types` "
578
580
"module."
579
581
msgstr ""
580
582
581
- #: ../../library/2to3.rst:426
583
+ #: ../../library/2to3.rst:427
582
584
msgid "Renames :class:`unicode` to :class:`str`."
583
585
msgstr ""
584
586
585
- #: ../../library/2to3.rst:430
587
+ #: ../../library/2to3.rst:431
586
588
msgid ""
587
589
"Handles the rename of :mod:`urllib` and :mod:`urllib2` to the :mod:`urllib` "
588
590
"package."
589
591
msgstr ""
590
592
591
- #: ../../library/2to3.rst:435
593
+ #: ../../library/2to3.rst:436
592
594
msgid ""
593
595
"Removes excess whitespace from comma separated items. This fixer is "
594
596
"optional."
595
597
msgstr ""
596
598
597
- #: ../../library/2to3.rst:440
599
+ #: ../../library/2to3.rst:441
598
600
msgid ""
599
601
"Renames :func:`xrange` to :func:`range` and wraps existing :func:`range` "
600
602
"calls with :class:`list`."
601
603
msgstr ""
602
604
603
- #: ../../library/2to3.rst:445
605
+ #: ../../library/2to3.rst:446
604
606
msgid "Changes ``for x in file.xreadlines()`` to ``for x in file``."
605
607
msgstr ""
606
608
607
- #: ../../library/2to3.rst:449
609
+ #: ../../library/2to3.rst:450
608
610
msgid ""
609
611
"Wraps :func:`zip` usage in a :class:`list` call. This is disabled when "
610
612
"``from future_builtins import zip`` appears."
611
613
msgstr ""
612
614
613
- #: ../../library/2to3.rst:454
615
+ #: ../../library/2to3.rst:455
614
616
msgid ":mod:`lib2to3` - 2to3's library"
615
617
msgstr ""
616
618
617
- #: ../../library/2to3.rst:463
619
+ #: ../../library/2to3.rst:464
618
620
msgid "**Source code:** :source:`Lib/lib2to3/`"
619
621
msgstr "**原始碼:**\\ :source:`Lib/lib2to3/`"
620
622
621
- #: ../../library/2to3.rst:476
623
+ #: ../../library/2to3.rst:477
622
624
msgid ""
623
625
"Python 3.9 switched to a PEG parser (see :pep:`617`) while lib2to3 is using "
624
626
"a less flexible LL(1) parser. Python 3.10 includes new language syntax that "
@@ -630,7 +632,7 @@ msgid ""
630
632
"or `parso`_."
631
633
msgstr ""
632
634
633
- #: ../../library/2to3.rst:479
635
+ #: ../../library/2to3.rst:480
634
636
msgid ""
635
637
"The :mod:`lib2to3` API should be considered unstable and may change "
636
638
"drastically in the future."
0 commit comments