6
6
msgstr ""
7
7
"Project-Id-Version : Python 3.13\n "
8
8
"Report-Msgid-Bugs-To : \n "
9
- "POT-Creation-Date : 2025-07-14 00:18 +0000\n "
9
+ "POT-Creation-Date : 2025-07-28 00:20 +0000\n "
10
10
"PO-Revision-Date : 2018-05-23 14:40+0000\n "
11
11
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
12
12
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -397,7 +397,7 @@ msgstr ""
397
397
398
398
#: ../../library/codecs.rst:352 ../../library/codecs.rst:395
399
399
#: ../../library/codecs.rst:415 ../../library/codecs.rst:1360
400
- #: ../../library/codecs.rst:1432 ../../library/codecs.rst:1487
400
+ #: ../../library/codecs.rst:1432 ../../library/codecs.rst:1517
401
401
msgid "Meaning"
402
402
msgstr "含義"
403
403
@@ -1404,12 +1404,12 @@ msgid "an IBM PC code page, which is ASCII compatible"
1404
1404
msgstr ""
1405
1405
1406
1406
#: ../../library/codecs.rst:1104 ../../library/codecs.rst:1360
1407
- #: ../../library/codecs.rst:1432 ../../library/codecs.rst:1487
1407
+ #: ../../library/codecs.rst:1432 ../../library/codecs.rst:1517
1408
1408
msgid "Codec"
1409
1409
msgstr ""
1410
1410
1411
1411
#: ../../library/codecs.rst:1104 ../../library/codecs.rst:1360
1412
- #: ../../library/codecs.rst:1432 ../../library/codecs.rst:1487
1412
+ #: ../../library/codecs.rst:1432 ../../library/codecs.rst:1517
1413
1413
msgid "Aliases"
1414
1414
msgstr ""
1415
1415
@@ -2569,73 +2569,111 @@ msgid "Restoration of the aliases for the binary transforms."
2569
2569
msgstr ""
2570
2570
2571
2571
#: ../../library/codecs.rst:1478
2572
- msgid "Text Transforms "
2572
+ msgid "Standalone Codec Functions "
2573
2573
msgstr ""
2574
2574
2575
2575
#: ../../library/codecs.rst:1480
2576
2576
msgid ""
2577
+ "The following functions provide encoding and decoding functionality similar "
2578
+ "to codecs, but are not available as named codecs through :func:`codecs."
2579
+ "encode` or :func:`codecs.decode`. They are used internally (for example, by :"
2580
+ "mod:`pickle`) and behave similarly to the ``string_escape`` codec that was "
2581
+ "removed in Python 3."
2582
+ msgstr ""
2583
+
2584
+ #: ../../library/codecs.rst:1487
2585
+ msgid ""
2586
+ "Encode *input* using escape sequences. Similar to how :func:`repr` on bytes "
2587
+ "produces escaped byte values."
2588
+ msgstr ""
2589
+
2590
+ #: ../../library/codecs.rst:1490
2591
+ msgid "*input* must be a :class:`bytes` object."
2592
+ msgstr ""
2593
+
2594
+ #: ../../library/codecs.rst:1492 ../../library/codecs.rst:1501
2595
+ msgid ""
2596
+ "Returns a tuple ``(output, length)`` where *output* is a :class:`bytes` "
2597
+ "object and *length* is the number of bytes consumed."
2598
+ msgstr ""
2599
+
2600
+ #: ../../library/codecs.rst:1497
2601
+ msgid "Decode *input* from escape sequences back to the original bytes."
2602
+ msgstr ""
2603
+
2604
+ #: ../../library/codecs.rst:1499
2605
+ #, fuzzy
2606
+ msgid "*input* must be a :term:`bytes-like object`."
2607
+ msgstr "*stream* 引數必須是類檔案物件。"
2608
+
2609
+ #: ../../library/codecs.rst:1508
2610
+ msgid "Text Transforms"
2611
+ msgstr ""
2612
+
2613
+ #: ../../library/codecs.rst:1510
2614
+ msgid ""
2577
2615
"The following codec provides a text transform: a :class:`str` to :class:"
2578
2616
"`str` mapping. It is not supported by :meth:`str.encode` (which only "
2579
2617
"produces :class:`bytes` output)."
2580
2618
msgstr ""
2581
2619
2582
- #: ../../library/codecs.rst:1489
2620
+ #: ../../library/codecs.rst:1519
2583
2621
msgid "rot_13"
2584
2622
msgstr "rot_13"
2585
2623
2586
- #: ../../library/codecs.rst:1489
2624
+ #: ../../library/codecs.rst:1519
2587
2625
msgid "rot13"
2588
2626
msgstr ""
2589
2627
2590
- #: ../../library/codecs.rst:1489
2628
+ #: ../../library/codecs.rst:1519
2591
2629
msgid "Return the Caesar-cypher encryption of the operand."
2592
2630
msgstr ""
2593
2631
2594
- #: ../../library/codecs.rst:1494
2632
+ #: ../../library/codecs.rst:1524
2595
2633
msgid "Restoration of the ``rot_13`` text transform."
2596
2634
msgstr ""
2597
2635
2598
- #: ../../library/codecs.rst:1497
2636
+ #: ../../library/codecs.rst:1527
2599
2637
msgid "Restoration of the ``rot13`` alias."
2600
2638
msgstr ""
2601
2639
2602
- #: ../../library/codecs.rst:1502
2640
+ #: ../../library/codecs.rst:1532
2603
2641
msgid ":mod:`encodings` --- Encodings package"
2604
2642
msgstr ""
2605
2643
2606
- #: ../../library/codecs.rst:1507
2644
+ #: ../../library/codecs.rst:1537
2607
2645
msgid "This module implements the following functions:"
2608
2646
msgstr ""
2609
2647
2610
- #: ../../library/codecs.rst:1511
2648
+ #: ../../library/codecs.rst:1541
2611
2649
msgid "Normalize encoding name *encoding*."
2612
2650
msgstr ""
2613
2651
2614
- #: ../../library/codecs.rst:1513
2652
+ #: ../../library/codecs.rst:1543
2615
2653
msgid ""
2616
2654
"Normalization works as follows: all non-alphanumeric characters except the "
2617
2655
"dot used for Python package names are collapsed and replaced with a single "
2618
2656
"underscore, leading and trailing underscores are removed. For example, ``' "
2619
2657
"-;#'`` becomes ``'_'``."
2620
2658
msgstr ""
2621
2659
2622
- #: ../../library/codecs.rst:1518
2660
+ #: ../../library/codecs.rst:1548
2623
2661
msgid "Note that *encoding* should be ASCII only."
2624
2662
msgstr ""
2625
2663
2626
- #: ../../library/codecs.rst:1522
2664
+ #: ../../library/codecs.rst:1552
2627
2665
msgid ""
2628
2666
"The following function should not be used directly, except for testing "
2629
2667
"purposes; :func:`codecs.lookup` should be used instead."
2630
2668
msgstr ""
2631
2669
2632
- #: ../../library/codecs.rst:1528
2670
+ #: ../../library/codecs.rst:1558
2633
2671
msgid ""
2634
2672
"Search for the codec module corresponding to the given encoding name "
2635
2673
"*encoding*."
2636
2674
msgstr ""
2637
2675
2638
- #: ../../library/codecs.rst:1531
2676
+ #: ../../library/codecs.rst:1561
2639
2677
msgid ""
2640
2678
"This function first normalizes the *encoding* using :func:"
2641
2679
"`normalize_encoding`, then looks for a corresponding alias. It attempts to "
@@ -2645,40 +2683,40 @@ msgid ""
2645
2683
"the codec is cached and returned."
2646
2684
msgstr ""
2647
2685
2648
- #: ../../library/codecs.rst:1538
2686
+ #: ../../library/codecs.rst:1568
2649
2687
msgid ""
2650
2688
"If the codec module defines a ``getaliases()`` function any returned aliases "
2651
2689
"are registered for future use."
2652
2690
msgstr ""
2653
2691
2654
- #: ../../library/codecs.rst:1542
2692
+ #: ../../library/codecs.rst:1572
2655
2693
msgid "This module implements the following exception:"
2656
2694
msgstr ""
2657
2695
2658
- #: ../../library/codecs.rst:1546
2696
+ #: ../../library/codecs.rst:1576
2659
2697
msgid "Raised when a codec is invalid or incompatible."
2660
2698
msgstr ""
2661
2699
2662
- #: ../../library/codecs.rst:1550
2700
+ #: ../../library/codecs.rst:1580
2663
2701
msgid ""
2664
2702
":mod:`encodings.idna` --- Internationalized Domain Names in Applications"
2665
2703
msgstr ""
2666
2704
2667
- #: ../../library/codecs.rst:1556
2705
+ #: ../../library/codecs.rst:1586
2668
2706
msgid ""
2669
2707
"This module implements :rfc:`3490` (Internationalized Domain Names in "
2670
2708
"Applications) and :rfc:`3492` (Nameprep: A Stringprep Profile for "
2671
2709
"Internationalized Domain Names (IDN)). It builds upon the ``punycode`` "
2672
2710
"encoding and :mod:`stringprep`."
2673
2711
msgstr ""
2674
2712
2675
- #: ../../library/codecs.rst:1561
2713
+ #: ../../library/codecs.rst:1591
2676
2714
msgid ""
2677
2715
"If you need the IDNA 2008 standard from :rfc:`5891` and :rfc:`5895`, use the "
2678
2716
"third-party :pypi:`idna` module."
2679
2717
msgstr ""
2680
2718
2681
- #: ../../library/codecs.rst:1564
2719
+ #: ../../library/codecs.rst:1594
2682
2720
msgid ""
2683
2721
"These RFCs together define a protocol to support non-ASCII characters in "
2684
2722
"domain names. A domain name containing non-ASCII characters (such as ``www."
@@ -2692,7 +2730,7 @@ msgid ""
2692
2730
"presenting them to the user."
2693
2731
msgstr ""
2694
2732
2695
- #: ../../library/codecs.rst:1575
2733
+ #: ../../library/codecs.rst:1605
2696
2734
msgid ""
2697
2735
"Python supports this conversion in several ways: the ``idna`` codec "
2698
2736
"performs conversion between Unicode and ACE, separating an input string into "
@@ -2709,64 +2747,64 @@ msgid ""
2709
2747
"sends that field at all)."
2710
2748
msgstr ""
2711
2749
2712
- #: ../../library/codecs.rst:1588
2750
+ #: ../../library/codecs.rst:1618
2713
2751
msgid ""
2714
2752
"When receiving host names from the wire (such as in reverse name lookup), no "
2715
2753
"automatic conversion to Unicode is performed: applications wishing to "
2716
2754
"present such host names to the user should decode them to Unicode."
2717
2755
msgstr ""
2718
2756
2719
- #: ../../library/codecs.rst:1592
2757
+ #: ../../library/codecs.rst:1622
2720
2758
msgid ""
2721
2759
"The module :mod:`encodings.idna` also implements the nameprep procedure, "
2722
2760
"which performs certain normalizations on host names, to achieve case-"
2723
2761
"insensitivity of international domain names, and to unify similar "
2724
2762
"characters. The nameprep functions can be used directly if desired."
2725
2763
msgstr ""
2726
2764
2727
- #: ../../library/codecs.rst:1600
2765
+ #: ../../library/codecs.rst:1630
2728
2766
msgid ""
2729
2767
"Return the nameprepped version of *label*. The implementation currently "
2730
2768
"assumes query strings, so ``AllowUnassigned`` is true."
2731
2769
msgstr ""
2732
2770
2733
- #: ../../library/codecs.rst:1606
2771
+ #: ../../library/codecs.rst:1636
2734
2772
msgid ""
2735
2773
"Convert a label to ASCII, as specified in :rfc:`3490`. ``UseSTD3ASCIIRules`` "
2736
2774
"is assumed to be false."
2737
2775
msgstr ""
2738
2776
2739
- #: ../../library/codecs.rst:1612
2777
+ #: ../../library/codecs.rst:1642
2740
2778
msgid "Convert a label to Unicode, as specified in :rfc:`3490`."
2741
2779
msgstr ""
2742
2780
2743
- #: ../../library/codecs.rst:1616
2781
+ #: ../../library/codecs.rst:1646
2744
2782
msgid ":mod:`encodings.mbcs` --- Windows ANSI codepage"
2745
2783
msgstr ":mod:`encodings.mbcs` --- Windows ANSI 碼頁"
2746
2784
2747
- #: ../../library/codecs.rst:1621
2785
+ #: ../../library/codecs.rst:1651
2748
2786
msgid "This module implements the ANSI codepage (CP_ACP)."
2749
2787
msgstr "這個模組實作了 ANSI 碼頁 (CP_ACP)。"
2750
2788
2751
- #: ../../library/codecs.rst:1623
2789
+ #: ../../library/codecs.rst:1653
2752
2790
msgid "Availability"
2753
2791
msgstr "可用性"
2754
2792
2755
- #: ../../library/codecs.rst:1625
2793
+ #: ../../library/codecs.rst:1655
2756
2794
msgid ""
2757
2795
"Before 3.2, the *errors* argument was ignored; ``'replace'`` was always used "
2758
2796
"to encode, and ``'ignore'`` to decode."
2759
2797
msgstr ""
2760
2798
2761
- #: ../../library/codecs.rst:1629
2799
+ #: ../../library/codecs.rst:1659
2762
2800
msgid "Support any error handler."
2763
2801
msgstr ""
2764
2802
2765
- #: ../../library/codecs.rst:1634
2803
+ #: ../../library/codecs.rst:1664
2766
2804
msgid ":mod:`encodings.utf_8_sig` --- UTF-8 codec with BOM signature"
2767
2805
msgstr ""
2768
2806
2769
- #: ../../library/codecs.rst:1640
2807
+ #: ../../library/codecs.rst:1670
2770
2808
msgid ""
2771
2809
"This module implements a variant of the UTF-8 codec. On encoding, a UTF-8 "
2772
2810
"encoded BOM will be prepended to the UTF-8 encoded bytes. For the stateful "
0 commit comments