77msgstr ""
88"Project-Id-Version :Python 3.11\n "
99"Report-Msgid-Bugs-To :\n "
10- "POT-Creation-Date :2023-01-21 00:16 +0000\n "
10+ "POT-Creation-Date :2023-02-18 00:17 +0000\n "
1111"PO-Revision-Date :2018-05-23 16:01+0000\n "
1212"Last-Translator :Adrian Liaw <adrianliaw2000@gmail.com>\n "
1313"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -746,109 +746,107 @@ msgid ""
746746msgstr ""
747747
748748#: ../../library/enum.rst:695
749- msgid ""
750- "Out-of-range values cause a :exc:`ValueError` to be raised. This is the "
751- "default for :class:`Flag`::"
749+ msgid "Out-of-range values cause a :exc:`ValueError` to be raised::"
752750msgstr ""
753751
754- #: ../../library/enum.rst:712
752+ #: ../../library/enum.rst:711
755753msgid ""
756754"Out-of-range values have invalid values removed, leaving a valid *Flag* "
757- "value::"
755+ "value. This is the default for :class:`Flag` ::"
758756msgstr ""
759757
760- #: ../../library/enum.rst:725
758+ #: ../../library/enum.rst:724
761759msgid ""
762760"Out-of-range values lose their *Flag* membership and revert to :class:`int`. "
763761"This is the default for :class:`IntFlag`::"
764762msgstr ""
765763
766- #: ../../library/enum.rst:738
764+ #: ../../library/enum.rst:737
767765msgid ""
768- "Out-of-range values are kept, and the *Flag* membership is kept. This is "
769- "used for some stdlib flags:"
766+ "Out-of-range values are kept, and the *Flag* membership is kept. This is "
767+ "used for some stdlib flags:: "
770768msgstr ""
771769
772- #: ../../library/enum.rst:754
770+ #: ../../library/enum.rst:753
773771msgid "Supported ``__dunder__`` names"
774772msgstr ""
775773
776- #: ../../library/enum.rst:756
774+ #: ../../library/enum.rst:755
777775msgid ""
778776":attr:`~EnumType.__members__` is a read-only ordered mapping of "
779777"``member_name``:``member`` items. It is only available on the class."
780778msgstr ""
781779
782- #: ../../library/enum.rst:759
780+ #: ../../library/enum.rst:758
783781msgid ""
784782":meth:`~object.__new__`, if specified, must create and return the enum "
785783"members; it is also a very good idea to set the member's :attr:`!_value_` "
786784"appropriately. Once all the members are created it is no longer used."
787785msgstr ""
788786
789- #: ../../library/enum.rst:765
787+ #: ../../library/enum.rst:764
790788msgid "Supported ``_sunder_`` names"
791789msgstr ""
792790
793- #: ../../library/enum.rst:767
791+ #: ../../library/enum.rst:766
794792msgid "``_name_`` -- name of the member"
795793msgstr ""
796794
797- #: ../../library/enum.rst:768
795+ #: ../../library/enum.rst:767
798796msgid ""
799797"``_value_`` -- value of the member; can be set / modified in ``__new__``"
800798msgstr ""
801799
802- #: ../../library/enum.rst:770
800+ #: ../../library/enum.rst:769
803801msgid ""
804802"``_missing_`` -- a lookup function used when a value is not found; may be "
805803"overridden"
806804msgstr ""
807805
808- #: ../../library/enum.rst:772
806+ #: ../../library/enum.rst:771
809807msgid ""
810808"``_ignore_`` -- a list of names, either as a :class:`list` or a :class:"
811809"`str`, that will not be transformed into members, and will be removed from "
812810"the final class"
813811msgstr ""
814812
815- #: ../../library/enum.rst:775
813+ #: ../../library/enum.rst:774
816814msgid ""
817815"``_order_`` -- used in Python 2/3 code to ensure member order is consistent "
818816"(class attribute, removed during class creation)"
819817msgstr ""
820818
821- #: ../../library/enum.rst:777
819+ #: ../../library/enum.rst:776
822820msgid ""
823821"``_generate_next_value_`` -- used to get an appropriate value for an enum "
824822"member; may be overridden"
825823msgstr ""
826824
827- #: ../../library/enum.rst:782
825+ #: ../../library/enum.rst:781
828826msgid ""
829827"For standard :class:`Enum` classes the next value chosen is the last value "
830828"seen incremented by one."
831829msgstr ""
832830
833- #: ../../library/enum.rst:785
831+ #: ../../library/enum.rst:784
834832msgid ""
835833"For :class:`Flag` classes the next value chosen will be the next highest "
836834"power-of-two, regardless of the last value seen."
837835msgstr ""
838836
839- #: ../../library/enum.rst:788
837+ #: ../../library/enum.rst:787
840838msgid "``_missing_``, ``_order_``, ``_generate_next_value_``"
841839msgstr "``_missing_``\\ 、\\ ``_order_``\\ 、\\ ``_generate_next_value_``"
842840
843- #: ../../library/enum.rst:789
841+ #: ../../library/enum.rst:788
844842msgid "``_ignore_``"
845843msgstr "``_ignore_``"
846844
847- #: ../../library/enum.rst:794
845+ #: ../../library/enum.rst:793
848846msgid "Utilities and Decorators"
849847msgstr ""
850848
851- #: ../../library/enum.rst:798
849+ #: ../../library/enum.rst:797
852850msgid ""
853851"*auto* can be used in place of a value. If used, the *Enum* machinery will "
854852"call an *Enum*'s :meth:`~Enum._generate_next_value_` to get an appropriate "
@@ -859,130 +857,130 @@ msgid ""
859857"manually specified values."
860858msgstr ""
861859
862- #: ../../library/enum.rst:806
860+ #: ../../library/enum.rst:805
863861msgid ""
864862"*auto* instances are only resolved when at the top level of an assignment:"
865863msgstr ""
866864
867- #: ../../library/enum.rst:808
865+ #: ../../library/enum.rst:807
868866msgid "``FIRST = auto()`` will work (auto() is replaced with ``1``);"
869867msgstr ""
870868
871- #: ../../library/enum.rst:809
869+ #: ../../library/enum.rst:808
872870msgid ""
873871"``SECOND = auto(), -2`` will work (auto is replaced with ``2``, so ``2, -2`` "
874872"is"
875873msgstr ""
876874
877- #: ../../library/enum.rst:810
875+ #: ../../library/enum.rst:809
878876msgid "used to create the ``SECOND`` enum member;"
879877msgstr ""
880878
881- #: ../../library/enum.rst:811
879+ #: ../../library/enum.rst:810
882880msgid ""
883881"``THREE = [auto(), -3]`` will *not* work (``<auto instance>, -3`` is used to "
884882"create the ``THREE`` enum member)"
885883msgstr ""
886884
887- #: ../../library/enum.rst:816
885+ #: ../../library/enum.rst:815
888886msgid ""
889887"In prior versions, ``auto()`` had to be the only thing on the assignment "
890888"line to work properly."
891889msgstr ""
892890
893- #: ../../library/enum.rst:819
891+ #: ../../library/enum.rst:818
894892msgid ""
895893"``_generate_next_value_`` can be overridden to customize the values used by "
896894"*auto*."
897895msgstr ""
898896
899- #: ../../library/enum.rst:822
897+ #: ../../library/enum.rst:821
900898msgid ""
901899"in 3.13 the default ``_generate_next_value_`` will always return the highest "
902900"member value incremented by 1, and will fail if any member is an "
903901"incompatible type."
904902msgstr ""
905903
906- #: ../../library/enum.rst:828
904+ #: ../../library/enum.rst:827
907905msgid ""
908906"A decorator similar to the built-in *property*, but specifically for "
909907"enumerations. It allows member attributes to have the same names as members "
910908"themselves."
911909msgstr ""
912910
913- #: ../../library/enum.rst:832
911+ #: ../../library/enum.rst:831
914912msgid ""
915913"the *property* and the member must be defined in separate classes; for "
916914"example, the *value* and *name* attributes are defined in the *Enum* class, "
917915"and *Enum* subclasses can define members with the names ``value`` and "
918916"``name``."
919917msgstr ""
920918
921- #: ../../library/enum.rst:841
919+ #: ../../library/enum.rst:840
922920msgid ""
923921"A :keyword:`class` decorator specifically for enumerations. It searches an "
924922"enumeration's :attr:`~EnumType.__members__`, gathering any aliases it finds; "
925923"if any are found :exc:`ValueError` is raised with the details::"
926924msgstr ""
927925
928- #: ../../library/enum.rst:859
926+ #: ../../library/enum.rst:858
929927msgid ""
930928"A :keyword:`class` decorator specifically for enumerations. Members from :"
931929"class:`EnumCheck` are used to specify which constraints should be checked on "
932930"the decorated enumeration."
933931msgstr ""
934932
935- #: ../../library/enum.rst:867
933+ #: ../../library/enum.rst:866
936934msgid "A decorator for use in enums: its target will become a member."
937935msgstr ""
938936
939- #: ../../library/enum.rst:873
937+ #: ../../library/enum.rst:872
940938msgid "A decorator for use in enums: its target will not become a member."
941939msgstr ""
942940
943- #: ../../library/enum.rst:879
941+ #: ../../library/enum.rst:878
944942msgid ""
945943"A decorator to change the :class:`str() <str>` and :func:`repr` of an enum "
946944"to show its members as belonging to the module instead of its class. Should "
947945"only be used when the enum members are exported to the module global "
948946"namespace (see :class:`re.RegexFlag` for an example)."
949947msgstr ""
950948
951- #: ../../library/enum.rst:889
949+ #: ../../library/enum.rst:888
952950msgid "Return a list of all power-of-two integers contained in a flag *value*."
953951msgstr ""
954952
955- #: ../../library/enum.rst:896
953+ #: ../../library/enum.rst:895
956954msgid "Notes"
957955msgstr ""
958956
959- #: ../../library/enum.rst:898
957+ #: ../../library/enum.rst:897
960958msgid ":class:`IntEnum`, :class:`StrEnum`, and :class:`IntFlag`"
961959msgstr ""
962960
963- #: ../../library/enum.rst:900
961+ #: ../../library/enum.rst:899
964962msgid ""
965963"These three enum types are designed to be drop-in replacements for existing "
966964"integer- and string-based values; as such, they have extra limitations:"
967965msgstr ""
968966
969- #: ../../library/enum.rst:903
967+ #: ../../library/enum.rst:902
970968msgid "``__str__`` uses the value and not the name of the enum member"
971969msgstr ""
972970
973- #: ../../library/enum.rst:905
971+ #: ../../library/enum.rst:904
974972msgid ""
975973"``__format__``, because it uses ``__str__``, will also use the value of the "
976974"enum member instead of its name"
977975msgstr ""
978976
979- #: ../../library/enum.rst:908
977+ #: ../../library/enum.rst:907
980978msgid ""
981979"If you do not need/want those limitations, you can either create your own "
982980"base class by mixing in the ``int`` or ``str`` type yourself::"
983981msgstr ""
984982
985- #: ../../library/enum.rst:915
983+ #: ../../library/enum.rst:914
986984msgid "or you can reassign the appropriate :meth:`str`, etc., in your enum::"
987985msgstr ""
988986