@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version : Python 3.14\n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2026-03-23 14:50 +0000\n "
15+ "POT-Creation-Date : 2026-03-25 14:54 +0000\n "
1616"PO-Revision-Date : 2025-09-16 00:01+0000\n "
1717"Last-Translator : Transifex Bot <>, 2025\n "
1818"Language-Team : Indonesian (https://app.transifex.com/python-doc/teams/5390/ "
@@ -455,6 +455,31 @@ msgid ""
455455"during class creation)."
456456msgstr ""
457457
458+ msgid ""
459+ "The :attr:`~Enum._order_` attribute can be provided to help keep Python 2 / "
460+ "Python 3 code in sync. It will be checked against the actual order of the "
461+ "enumeration and raise an error if the two do not match::"
462+ msgstr ""
463+
464+ msgid ""
465+ ">>> class Color(Enum):\n"
466+ "... _order_ = 'RED GREEN BLUE'\n"
467+ "... RED = 1\n"
468+ "... BLUE = 3\n"
469+ "... GREEN = 2\n"
470+ "...\n"
471+ "Traceback (most recent call last):\n"
472+ "...\n"
473+ "TypeError: member order does not match _order_:\n"
474+ " ['RED', 'BLUE', 'GREEN']\n"
475+ " ['RED', 'GREEN', 'BLUE']"
476+ msgstr ""
477+
478+ msgid ""
479+ "In Python 2 code the :attr:`~Enum._order_` attribute is necessary as "
480+ "definition order is lost before it can be recorded."
481+ msgstr ""
482+
458483msgid ""
459484"``_ignore_`` is only used during creation and is removed from the "
460485"enumeration once creation is complete."
@@ -514,7 +539,20 @@ msgstr ""
514539
515540msgid ""
516541"A *staticmethod* that is used to determine the next value returned by :class:"
517- "`auto`::"
542+ "`auto`."
543+ msgstr ""
544+
545+ msgid ""
546+ "For standard :class:`Enum` classes the next value chosen is the highest "
547+ "value seen incremented by one."
548+ msgstr ""
549+
550+ msgid ""
551+ "For :class:`Flag` classes the next value chosen will be the next highest "
552+ "power-of-two."
553+ msgstr ""
554+
555+ msgid "This method may be overridden, e.g.::"
518556msgstr ""
519557
520558msgid ""
@@ -530,6 +568,10 @@ msgid ""
530568"9"
531569msgstr ""
532570
571+ msgid ""
572+ "Prior versions would use the last seen value instead of the highest value."
573+ msgstr ""
574+
533575msgid ""
534576"By default, does nothing. If multiple values are given in the member "
535577"assignment, those values become separate arguments to ``__init__``; e.g."
@@ -678,6 +720,9 @@ msgid ""
678720"member."
679721msgstr ""
680722
723+ msgid "See :ref:`multi-value-enum` for an example."
724+ msgstr ""
725+
681726msgid ""
682727"*IntEnum* is the same as :class:`Enum`, but its members are also integers "
683728"and can be used anywhere that an integer can be used. If any integer "
@@ -1056,8 +1101,9 @@ msgstr ""
10561101
10571102msgid ""
10581103":meth:`~Enum.__new__`, if specified, must create and return the enum "
1059- "members; it is also a very good idea to set the member's :attr:`!_value_` "
1060- "appropriately. Once all the members are created it is no longer used."
1104+ "members; it is also a very good idea to set the member's :attr:`~Enum."
1105+ "_value_` appropriately. Once all the members are created it is no longer "
1106+ "used."
10611107msgstr ""
10621108
10631109msgid "Supported ``_sunder_`` names"
@@ -1090,16 +1136,6 @@ msgid ""
10901136"an enum member; may be overridden"
10911137msgstr ""
10921138
1093- msgid ""
1094- "For standard :class:`Enum` classes the next value chosen is the highest "
1095- "value seen incremented by one."
1096- msgstr ""
1097-
1098- msgid ""
1099- "For :class:`Flag` classes the next value chosen will be the next highest "
1100- "power-of-two."
1101- msgstr ""
1102-
11031139msgid ""
11041140":meth:`~Enum._add_alias_` -- adds a new name as an alias to an existing "
11051141"member."
0 commit comments