Skip to content

Commit a5e48db

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython b7a49eb5
1 parent d91f176 commit a5e48db

File tree

3 files changed

+59
-61
lines changed

3 files changed

+59
-61
lines changed

c-api/module.po

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.11\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2022-10-06 00:23+0000\n"
11+
"POT-Creation-Date: 2023-02-18 00:17+0000\n"
1212
"PO-Revision-Date: 2018-05-23 14:32+0000\n"
1313
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -444,17 +444,17 @@ msgstr ""
444444

445445
#: ../../c-api/module.rst:391
446446
msgid ""
447-
"Create a new module object, given the definition in *module* and the "
448-
"ModuleSpec *spec*. This behaves like :c:func:`PyModule_FromDefAndSpec2` "
449-
"with *module_api_version* set to :const:`PYTHON_API_VERSION`."
447+
"Create a new module object, given the definition in *def* and the ModuleSpec "
448+
"*spec*. This behaves like :c:func:`PyModule_FromDefAndSpec2` with "
449+
"*module_api_version* set to :const:`PYTHON_API_VERSION`."
450450
msgstr ""
451451

452452
#: ../../c-api/module.rst:399
453453
msgid ""
454-
"Create a new module object, given the definition in *module* and the "
455-
"ModuleSpec *spec*, assuming the API version *module_api_version*. If that "
456-
"version does not match the version of the running interpreter, a :exc:"
457-
"`RuntimeWarning` is emitted."
454+
"Create a new module object, given the definition in *def* and the ModuleSpec "
455+
"*spec*, assuming the API version *module_api_version*. If that version does "
456+
"not match the version of the running interpreter, a :exc:`RuntimeWarning` is "
457+
"emitted."
458458
msgstr ""
459459

460460
#: ../../c-api/module.rst:406

library/enum.po

+47-49
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
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 ""
746746
msgstr ""
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::"
752750
msgstr ""
753751

754-
#: ../../library/enum.rst:712
752+
#: ../../library/enum.rst:711
755753
msgid ""
756754
"Out-of-range values have invalid values removed, leaving a valid *Flag* "
757-
"value::"
755+
"value. This is the default for :class:`Flag`::"
758756
msgstr ""
759757

760-
#: ../../library/enum.rst:725
758+
#: ../../library/enum.rst:724
761759
msgid ""
762760
"Out-of-range values lose their *Flag* membership and revert to :class:`int`. "
763761
"This is the default for :class:`IntFlag`::"
764762
msgstr ""
765763

766-
#: ../../library/enum.rst:738
764+
#: ../../library/enum.rst:737
767765
msgid ""
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::"
770768
msgstr ""
771769

772-
#: ../../library/enum.rst:754
770+
#: ../../library/enum.rst:753
773771
msgid "Supported ``__dunder__`` names"
774772
msgstr ""
775773

776-
#: ../../library/enum.rst:756
774+
#: ../../library/enum.rst:755
777775
msgid ""
778776
":attr:`~EnumType.__members__` is a read-only ordered mapping of "
779777
"``member_name``:``member`` items. It is only available on the class."
780778
msgstr ""
781779

782-
#: ../../library/enum.rst:759
780+
#: ../../library/enum.rst:758
783781
msgid ""
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."
787785
msgstr ""
788786

789-
#: ../../library/enum.rst:765
787+
#: ../../library/enum.rst:764
790788
msgid "Supported ``_sunder_`` names"
791789
msgstr ""
792790

793-
#: ../../library/enum.rst:767
791+
#: ../../library/enum.rst:766
794792
msgid "``_name_`` -- name of the member"
795793
msgstr ""
796794

797-
#: ../../library/enum.rst:768
795+
#: ../../library/enum.rst:767
798796
msgid ""
799797
"``_value_`` -- value of the member; can be set / modified in ``__new__``"
800798
msgstr ""
801799

802-
#: ../../library/enum.rst:770
800+
#: ../../library/enum.rst:769
803801
msgid ""
804802
"``_missing_`` -- a lookup function used when a value is not found; may be "
805803
"overridden"
806804
msgstr ""
807805

808-
#: ../../library/enum.rst:772
806+
#: ../../library/enum.rst:771
809807
msgid ""
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"
813811
msgstr ""
814812

815-
#: ../../library/enum.rst:775
813+
#: ../../library/enum.rst:774
816814
msgid ""
817815
"``_order_`` -- used in Python 2/3 code to ensure member order is consistent "
818816
"(class attribute, removed during class creation)"
819817
msgstr ""
820818

821-
#: ../../library/enum.rst:777
819+
#: ../../library/enum.rst:776
822820
msgid ""
823821
"``_generate_next_value_`` -- used to get an appropriate value for an enum "
824822
"member; may be overridden"
825823
msgstr ""
826824

827-
#: ../../library/enum.rst:782
825+
#: ../../library/enum.rst:781
828826
msgid ""
829827
"For standard :class:`Enum` classes the next value chosen is the last value "
830828
"seen incremented by one."
831829
msgstr ""
832830

833-
#: ../../library/enum.rst:785
831+
#: ../../library/enum.rst:784
834832
msgid ""
835833
"For :class:`Flag` classes the next value chosen will be the next highest "
836834
"power-of-two, regardless of the last value seen."
837835
msgstr ""
838836

839-
#: ../../library/enum.rst:788
837+
#: ../../library/enum.rst:787
840838
msgid "``_missing_``, ``_order_``, ``_generate_next_value_``"
841839
msgstr "``_missing_``\\\\ ``_order_``\\\\ ``_generate_next_value_``"
842840

843-
#: ../../library/enum.rst:789
841+
#: ../../library/enum.rst:788
844842
msgid "``_ignore_``"
845843
msgstr "``_ignore_``"
846844

847-
#: ../../library/enum.rst:794
845+
#: ../../library/enum.rst:793
848846
msgid "Utilities and Decorators"
849847
msgstr ""
850848

851-
#: ../../library/enum.rst:798
849+
#: ../../library/enum.rst:797
852850
msgid ""
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."
860858
msgstr ""
861859

862-
#: ../../library/enum.rst:806
860+
#: ../../library/enum.rst:805
863861
msgid ""
864862
"*auto* instances are only resolved when at the top level of an assignment:"
865863
msgstr ""
866864

867-
#: ../../library/enum.rst:808
865+
#: ../../library/enum.rst:807
868866
msgid "``FIRST = auto()`` will work (auto() is replaced with ``1``);"
869867
msgstr ""
870868

871-
#: ../../library/enum.rst:809
869+
#: ../../library/enum.rst:808
872870
msgid ""
873871
"``SECOND = auto(), -2`` will work (auto is replaced with ``2``, so ``2, -2`` "
874872
"is"
875873
msgstr ""
876874

877-
#: ../../library/enum.rst:810
875+
#: ../../library/enum.rst:809
878876
msgid "used to create the ``SECOND`` enum member;"
879877
msgstr ""
880878

881-
#: ../../library/enum.rst:811
879+
#: ../../library/enum.rst:810
882880
msgid ""
883881
"``THREE = [auto(), -3]`` will *not* work (``<auto instance>, -3`` is used to "
884882
"create the ``THREE`` enum member)"
885883
msgstr ""
886884

887-
#: ../../library/enum.rst:816
885+
#: ../../library/enum.rst:815
888886
msgid ""
889887
"In prior versions, ``auto()`` had to be the only thing on the assignment "
890888
"line to work properly."
891889
msgstr ""
892890

893-
#: ../../library/enum.rst:819
891+
#: ../../library/enum.rst:818
894892
msgid ""
895893
"``_generate_next_value_`` can be overridden to customize the values used by "
896894
"*auto*."
897895
msgstr ""
898896

899-
#: ../../library/enum.rst:822
897+
#: ../../library/enum.rst:821
900898
msgid ""
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."
904902
msgstr ""
905903

906-
#: ../../library/enum.rst:828
904+
#: ../../library/enum.rst:827
907905
msgid ""
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."
911909
msgstr ""
912910

913-
#: ../../library/enum.rst:832
911+
#: ../../library/enum.rst:831
914912
msgid ""
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``."
919917
msgstr ""
920918

921-
#: ../../library/enum.rst:841
919+
#: ../../library/enum.rst:840
922920
msgid ""
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::"
926924
msgstr ""
927925

928-
#: ../../library/enum.rst:859
926+
#: ../../library/enum.rst:858
929927
msgid ""
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."
933931
msgstr ""
934932

935-
#: ../../library/enum.rst:867
933+
#: ../../library/enum.rst:866
936934
msgid "A decorator for use in enums: its target will become a member."
937935
msgstr ""
938936

939-
#: ../../library/enum.rst:873
937+
#: ../../library/enum.rst:872
940938
msgid "A decorator for use in enums: its target will not become a member."
941939
msgstr ""
942940

943-
#: ../../library/enum.rst:879
941+
#: ../../library/enum.rst:878
944942
msgid ""
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)."
949947
msgstr ""
950948

951-
#: ../../library/enum.rst:889
949+
#: ../../library/enum.rst:888
952950
msgid "Return a list of all power-of-two integers contained in a flag *value*."
953951
msgstr ""
954952

955-
#: ../../library/enum.rst:896
953+
#: ../../library/enum.rst:895
956954
msgid "Notes"
957955
msgstr ""
958956

959-
#: ../../library/enum.rst:898
957+
#: ../../library/enum.rst:897
960958
msgid ":class:`IntEnum`, :class:`StrEnum`, and :class:`IntFlag`"
961959
msgstr ""
962960

963-
#: ../../library/enum.rst:900
961+
#: ../../library/enum.rst:899
964962
msgid ""
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:"
967965
msgstr ""
968966

969-
#: ../../library/enum.rst:903
967+
#: ../../library/enum.rst:902
970968
msgid "``__str__`` uses the value and not the name of the enum member"
971969
msgstr ""
972970

973-
#: ../../library/enum.rst:905
971+
#: ../../library/enum.rst:904
974972
msgid ""
975973
"``__format__``, because it uses ``__str__``, will also use the value of the "
976974
"enum member instead of its name"
977975
msgstr ""
978976

979-
#: ../../library/enum.rst:908
977+
#: ../../library/enum.rst:907
980978
msgid ""
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::"
983981
msgstr ""
984982

985-
#: ../../library/enum.rst:915
983+
#: ../../library/enum.rst:914
986984
msgid "or you can reassign the appropriate :meth:`str`, etc., in your enum::"
987985
msgstr ""
988986

library/plistlib.po

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2021-09-29 00:11+0000\n"
10+
"POT-Creation-Date: 2023-02-18 00:17+0000\n"
1111
"PO-Revision-Date: 2016-01-31 07:27+0000\n"
1212
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -28,8 +28,8 @@ msgstr "**原始碼:**\\ :source:`Lib/plistlib.py`"
2828

2929
#: ../../library/plistlib.rst:19
3030
msgid ""
31-
"This module provides an interface for reading and writing the \"property list"
32-
"\" files used by Apple, primarily on macOS and iOS. This module supports "
31+
"This module provides an interface for reading and writing the \"property "
32+
"list\" files used by Apple, primarily on macOS and iOS. This module supports "
3333
"both binary and XML plist files."
3434
msgstr ""
3535

@@ -221,6 +221,6 @@ msgstr "範例"
221221
msgid "Generating a plist::"
222222
msgstr ""
223223

224-
#: ../../library/plistlib.rst:180
224+
#: ../../library/plistlib.rst:182
225225
msgid "Parsing a plist::"
226226
msgstr ""

0 commit comments

Comments
 (0)