@@ -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 : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -468,6 +468,31 @@ msgid ""
468468"during class creation)."
469469msgstr ""
470470
471+ msgid ""
472+ "The :attr:`~Enum._order_` attribute can be provided to help keep Python 2 / "
473+ "Python 3 code in sync. It will be checked against the actual order of the "
474+ "enumeration and raise an error if the two do not match::"
475+ msgstr ""
476+
477+ msgid ""
478+ ">>> class Color(Enum):\n"
479+ "... _order_ = 'RED GREEN BLUE'\n"
480+ "... RED = 1\n"
481+ "... BLUE = 3\n"
482+ "... GREEN = 2\n"
483+ "...\n"
484+ "Traceback (most recent call last):\n"
485+ "...\n"
486+ "TypeError: member order does not match _order_:\n"
487+ " ['RED', 'BLUE', 'GREEN']\n"
488+ " ['RED', 'GREEN', 'BLUE']"
489+ msgstr ""
490+
491+ msgid ""
492+ "In Python 2 code the :attr:`~Enum._order_` attribute is necessary as "
493+ "definition order is lost before it can be recorded."
494+ msgstr ""
495+
471496msgid ""
472497"``_ignore_`` is only used during creation and is removed from the "
473498"enumeration once creation is complete."
@@ -527,7 +552,20 @@ msgstr ""
527552
528553msgid ""
529554"A *staticmethod* that is used to determine the next value returned by :class:"
530- "`auto`::"
555+ "`auto`."
556+ msgstr ""
557+
558+ msgid ""
559+ "For standard :class:`Enum` classes the next value chosen is the highest "
560+ "value seen incremented by one."
561+ msgstr ""
562+
563+ msgid ""
564+ "For :class:`Flag` classes the next value chosen will be the next highest "
565+ "power-of-two."
566+ msgstr ""
567+
568+ msgid "This method may be overridden, e.g.::"
531569msgstr ""
532570
533571msgid ""
@@ -543,6 +581,10 @@ msgid ""
543581"9"
544582msgstr ""
545583
584+ msgid ""
585+ "Prior versions would use the last seen value instead of the highest value."
586+ msgstr ""
587+
546588msgid ""
547589"By default, does nothing. If multiple values are given in the member "
548590"assignment, those values become separate arguments to ``__init__``; e.g."
@@ -691,6 +733,9 @@ msgid ""
691733"member."
692734msgstr ""
693735
736+ msgid "See :ref:`multi-value-enum` for an example."
737+ msgstr ""
738+
694739msgid ""
695740"*IntEnum* is the same as :class:`Enum`, but its members are also integers "
696741"and can be used anywhere that an integer can be used. If any integer "
@@ -1102,8 +1147,9 @@ msgstr ""
11021147
11031148msgid ""
11041149":meth:`~Enum.__new__`, if specified, must create and return the enum "
1105- "members; it is also a very good idea to set the member's :attr:`!_value_` "
1106- "appropriately. Once all the members are created it is no longer used."
1150+ "members; it is also a very good idea to set the member's :attr:`~Enum."
1151+ "_value_` appropriately. Once all the members are created it is no longer "
1152+ "used."
11071153msgstr ""
11081154
11091155msgid "Supported ``_sunder_`` names"
@@ -1136,16 +1182,6 @@ msgid ""
11361182"an enum member; may be overridden"
11371183msgstr ""
11381184
1139- msgid ""
1140- "For standard :class:`Enum` classes the next value chosen is the highest "
1141- "value seen incremented by one."
1142- msgstr ""
1143-
1144- msgid ""
1145- "For :class:`Flag` classes the next value chosen will be the next highest "
1146- "power-of-two."
1147- msgstr ""
1148-
11491185msgid ""
11501186":meth:`~Enum._add_alias_` -- adds a new name as an alias to an existing "
11511187"member."
0 commit comments