-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathenum.po
More file actions
816 lines (624 loc) · 21.8 KB
/
Copy pathenum.po
File metadata and controls
816 lines (624 loc) · 21.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2026, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# python-doc bot, 2025
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.11\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-06-02 03:25+0000\n"
"PO-Revision-Date: 2025-09-22 16:50+0000\n"
"Last-Translator: python-doc bot, 2025\n"
"Language-Team: Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: pl\n"
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && "
"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && "
"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
msgid ":mod:`enum` --- Support for enumerations"
msgstr ":mod:`enum` --- Wsparcie dla wyliczeń"
msgid "**Source code:** :source:`Lib/enum.py`"
msgstr "**kod źródłowy:** :source:`Lib/enum.py`"
msgid ""
"This page contains the API reference information. For tutorial information "
"and discussion of more advanced topics, see"
msgstr ""
msgid ":ref:`Basic Tutorial <enum-basic-tutorial>`"
msgstr ""
msgid ":ref:`Advanced Tutorial <enum-advanced-tutorial>`"
msgstr ""
msgid ":ref:`Enum Cookbook <enum-cookbook>`"
msgstr ""
msgid "An enumeration:"
msgstr ""
msgid "is a set of symbolic names (members) bound to unique values"
msgstr ""
msgid ""
"can be iterated over to return its canonical (i.e. non-alias) members in "
"definition order"
msgstr ""
msgid "uses *call* syntax to return members by value"
msgstr ""
msgid "uses *index* syntax to return members by name"
msgstr ""
msgid ""
"Enumerations are created either by using :keyword:`class` syntax, or by "
"using function-call syntax::"
msgstr ""
msgid ""
"Even though we can use :keyword:`class` syntax to create Enums, Enums are "
"not normal Python classes. See :ref:`How are Enums different? <enum-class-"
"differences>` for more details."
msgstr ""
msgid "Nomenclature"
msgstr ""
msgid "The class :class:`!Color` is an *enumeration* (or *enum*)"
msgstr ""
msgid ""
"The attributes :attr:`!Color.RED`, :attr:`!Color.GREEN`, etc., are "
"*enumeration members* (or *members*) and are functionally constants."
msgstr ""
msgid ""
"The enum members have *names* and *values* (the name of :attr:`!Color.RED` "
"is ``RED``, the value of :attr:`!Color.BLUE` is ``3``, etc.)"
msgstr ""
msgid "Module Contents"
msgstr ""
msgid ":class:`EnumType`"
msgstr ":class:`EnumType`"
msgid "The ``type`` for Enum and its subclasses."
msgstr ""
msgid ":class:`Enum`"
msgstr ":class:`Enum`"
msgid "Base class for creating enumerated constants."
msgstr ""
msgid ":class:`IntEnum`"
msgstr ":class:`IntEnum`"
msgid ""
"Base class for creating enumerated constants that are also subclasses of :"
"class:`int`. (`Notes`_)"
msgstr ""
msgid ":class:`StrEnum`"
msgstr ":class:`StrEnum`"
msgid ""
"Base class for creating enumerated constants that are also subclasses of :"
"class:`str`. (`Notes`_)"
msgstr ""
msgid ":class:`Flag`"
msgstr ":class:`Flag`"
msgid ""
"Base class for creating enumerated constants that can be combined using the "
"bitwise operations without losing their :class:`Flag` membership."
msgstr ""
msgid ":class:`IntFlag`"
msgstr ":class:`IntFlag`"
msgid ""
"Base class for creating enumerated constants that can be combined using the "
"bitwise operators without losing their :class:`IntFlag` membership. :class:"
"`IntFlag` members are also subclasses of :class:`int`. (`Notes`_)"
msgstr ""
msgid ":class:`ReprEnum`"
msgstr ":class:`ReprEnum`"
msgid ""
"Used by :class:`IntEnum`, :class:`StrEnum`, and :class:`IntFlag` to keep "
"the :class:`str() <str>` of the mixed-in type."
msgstr ""
msgid ":class:`EnumCheck`"
msgstr ":class:`EnumCheck`"
msgid ""
"An enumeration with the values ``CONTINUOUS``, ``NAMED_FLAGS``, and "
"``UNIQUE``, for use with :func:`verify` to ensure various constraints are "
"met by a given enumeration."
msgstr ""
msgid ":class:`FlagBoundary`"
msgstr ":class:`FlagBoundary`"
msgid ""
"An enumeration with the values ``STRICT``, ``CONFORM``, ``EJECT``, and "
"``KEEP`` which allows for more fine-grained control over how invalid values "
"are dealt with in an enumeration."
msgstr ""
msgid ":class:`auto`"
msgstr ":class:`auto`"
msgid ""
"Instances are replaced with an appropriate value for Enum members. :class:"
"`StrEnum` defaults to the lower-cased version of the member name, while "
"other Enums default to 1 and increase from there."
msgstr ""
msgid ":func:`~enum.property`"
msgstr ":func:`~enum.property`"
msgid ""
"Allows :class:`Enum` members to have attributes without conflicting with "
"member names."
msgstr ""
msgid ":func:`unique`"
msgstr ":func:`unique`"
msgid ""
"Enum class decorator that ensures only one name is bound to any one value."
msgstr ""
msgid ":func:`verify`"
msgstr ":func:`verify`"
msgid ""
"Enum class decorator that checks user-selectable constraints on an "
"enumeration."
msgstr ""
msgid ":func:`member`"
msgstr ":func:`member`"
msgid "Make ``obj`` a member. Can be used as a decorator."
msgstr ""
msgid ":func:`nonmember`"
msgstr ":func:`nonmember`"
msgid "Do not make ``obj`` a member. Can be used as a decorator."
msgstr ""
msgid ":func:`global_enum`"
msgstr ":func:`global_enum`"
msgid ""
"Modify the :class:`str() <str>` and :func:`repr` of an enum to show its "
"members as belonging to the module instead of its class, and export the enum "
"members to the global namespace."
msgstr ""
msgid ":func:`show_flag_values`"
msgstr ":func:`show_flag_values`"
msgid "Return a list of all power-of-two integers contained in a flag."
msgstr ""
msgid "``Flag``, ``IntFlag``, ``auto``"
msgstr ""
msgid ""
"``StrEnum``, ``EnumCheck``, ``ReprEnum``, ``FlagBoundary``, ``property``, "
"``member``, ``nonmember``, ``global_enum``, ``show_flag_values``"
msgstr ""
msgid "Data Types"
msgstr "Typy danych"
msgid ""
"*EnumType* is the :term:`metaclass` for *enum* enumerations. It is possible "
"to subclass *EnumType* -- see :ref:`Subclassing EnumType <enumtype-"
"examples>` for details."
msgstr ""
msgid ""
"*EnumType* is responsible for setting the correct :meth:`!__repr__`, :meth:`!"
"__str__`, :meth:`!__format__`, and :meth:`!__reduce__` methods on the final "
"*enum*, as well as creating the enum members, properly handling duplicates, "
"providing iteration over the enum class, etc."
msgstr ""
msgid "This method is called in two different ways:"
msgstr ""
msgid "to look up an existing member:"
msgstr ""
msgid "cls"
msgstr ""
msgid "The enum class being called."
msgstr ""
msgid "value"
msgstr ""
msgid "The value to lookup."
msgstr ""
msgid ""
"to use the ``cls`` enum to create a new enum (only if the existing enum does "
"not have any members):"
msgstr ""
msgid "The name of the new Enum to create."
msgstr ""
msgid "names"
msgstr ""
msgid "The names/values of the members for the new Enum."
msgstr ""
msgid "module"
msgstr "moduł"
msgid "The name of the module the new Enum is created in."
msgstr ""
msgid "qualname"
msgstr ""
msgid "The actual location in the module where this Enum can be found."
msgstr ""
msgid "type"
msgstr "typ"
msgid "A mix-in type for the new Enum."
msgstr ""
msgid "start"
msgstr ""
msgid "The first integer value for the Enum (used by :class:`auto`)."
msgstr ""
msgid "boundary"
msgstr ""
msgid ""
"How to handle out-of-range values from bit operations (:class:`Flag` only)."
msgstr ""
msgid "Returns ``True`` if member belongs to the ``cls``::"
msgstr ""
msgid ""
"In Python 3.12 it will be possible to check for member values and not just "
"members; until then, a ``TypeError`` will be raised if a non-Enum-member is "
"used in a containment check."
msgstr ""
msgid ""
"Returns ``['__class__', '__doc__', '__members__', '__module__']`` and the "
"names of the members in *cls*::"
msgstr ""
msgid ""
"Returns the Enum member in *cls* matching *name*, or raises an :exc:"
"`AttributeError`::"
msgstr ""
msgid ""
"Returns the Enum member in *cls* matching *name*, or raises a :exc:"
"`KeyError`::"
msgstr ""
msgid "Returns each member in *cls* in definition order::"
msgstr ""
msgid "Returns the number of member in *cls*::"
msgstr ""
msgid "Returns each member in *cls* in reverse definition order::"
msgstr ""
msgid "Before 3.11 ``enum`` used ``EnumMeta`` type, which is kept as an alias."
msgstr ""
msgid "*Enum* is the base class for all *enum* enumerations."
msgstr ""
msgid "The name used to define the ``Enum`` member::"
msgstr ""
msgid "The value given to the ``Enum`` member::"
msgstr ""
msgid "Value of the member, can be set in :meth:`~object.__new__`."
msgstr ""
msgid "Enum member values"
msgstr ""
msgid ""
"Member values can be anything: :class:`int`, :class:`str`, etc. If the "
"exact value is unimportant you may use :class:`auto` instances and an "
"appropriate value will be chosen for you. See :class:`auto` for the details."
msgstr ""
msgid ""
"While mutable/unhashable values, such as :class:`dict`, :class:`list` or a "
"mutable :class:`~dataclasses.dataclass`, can be used, they will have a "
"quadratic performance impact during creation relative to the total number of "
"mutable/unhashable values in the enum."
msgstr ""
msgid "Name of the member."
msgstr ""
msgid ""
"No longer used, kept for backward compatibility. (class attribute, removed "
"during class creation)."
msgstr ""
msgid ""
"``_ignore_`` is only used during creation and is removed from the "
"enumeration once creation is complete."
msgstr ""
msgid ""
"``_ignore_`` is a list of names that will not become members, and whose "
"names will also be removed from the completed enumeration. See :ref:"
"`TimePeriod <enum-time-period>` for an example."
msgstr ""
msgid ""
"Returns ``['__class__', '__doc__', '__module__', 'name', 'value']`` and any "
"public methods defined on *self.__class__*::"
msgstr ""
msgid "name"
msgstr "nazwa"
msgid "The name of the member being defined (e.g. 'RED')."
msgstr ""
msgid "The start value for the Enum; the default is 1."
msgstr ""
msgid "count"
msgstr ""
msgid "The number of members currently defined, not including this one."
msgstr ""
msgid "last_values"
msgstr ""
msgid "A list of the previous values."
msgstr ""
msgid ""
"A *staticmethod* that is used to determine the next value returned by :class:"
"`auto`::"
msgstr ""
msgid ""
"A *classmethod* that is used to further configure subsequent subclasses. By "
"default, does nothing."
msgstr ""
msgid ""
"A *classmethod* for looking up values not found in *cls*. By default it "
"does nothing, but can be overridden to implement custom search behavior::"
msgstr ""
msgid ""
"Returns the string used for *repr()* calls. By default, returns the *Enum* "
"name, member name, and value, but can be overridden::"
msgstr ""
msgid ""
"Returns the string used for *str()* calls. By default, returns the *Enum* "
"name and member name, but can be overridden::"
msgstr ""
msgid ""
"Returns the string used for *format()* and *f-string* calls. By default, "
"returns :meth:`__str__` return value, but can be overridden::"
msgstr ""
msgid ""
"Using :class:`auto` with :class:`Enum` results in integers of increasing "
"value, starting with ``1``."
msgstr ""
msgid ""
"*IntEnum* is the same as *Enum*, but its members are also integers and can "
"be used anywhere that an integer can be used. If any integer operation is "
"performed with an *IntEnum* member, the resulting value loses its "
"enumeration status."
msgstr ""
msgid ""
"Using :class:`auto` with :class:`IntEnum` results in integers of increasing "
"value, starting with ``1``."
msgstr ""
msgid ""
":meth:`~object.__str__` is now :meth:`!int.__str__` to better support the "
"*replacement of existing constants* use-case. :meth:`~object.__format__` was "
"already :meth:`!int.__format__` for that same reason."
msgstr ""
msgid ""
"*StrEnum* is the same as *Enum*, but its members are also strings and can be "
"used in most of the same places that a string can be used. The result of "
"any string operation performed on or with a *StrEnum* member is not part of "
"the enumeration."
msgstr ""
msgid ""
"There are places in the stdlib that check for an exact :class:`str` instead "
"of a :class:`str` subclass (i.e. ``type(unknown) == str`` instead of "
"``isinstance(unknown, str)``), and in those locations you will need to use "
"``str(StrEnum.member)``."
msgstr ""
msgid ""
"Using :class:`auto` with :class:`StrEnum` results in the lower-cased member "
"name as the value."
msgstr ""
msgid ""
":meth:`~object.__str__` is :meth:`!str.__str__` to better support the "
"*replacement of existing constants* use-case. :meth:`~object.__format__` is "
"likewise :meth:`!str.__format__` for that same reason."
msgstr ""
msgid ""
"*Flag* members support the bitwise operators ``&`` (*AND*), ``|`` (*OR*), "
"``^`` (*XOR*), and ``~`` (*INVERT*); the results of those operators are "
"members of the enumeration."
msgstr ""
msgid "Returns *True* if value is in self::"
msgstr ""
msgid "Returns all contained non-alias members::"
msgstr ""
msgid "Returns number of members in flag::"
msgstr ""
msgid "Returns *True* if any members in flag, *False* otherwise::"
msgstr ""
msgid "Returns current flag binary or'ed with other::"
msgstr ""
msgid "Returns current flag binary and'ed with other::"
msgstr ""
msgid "Returns current flag binary xor'ed with other::"
msgstr ""
msgid "Returns all the flags in *type(self)* that are not in self::"
msgstr ""
msgid ""
"Function used to format any remaining unnamed numeric values. Default is "
"the value's repr; common choices are :func:`hex` and :func:`oct`."
msgstr ""
msgid ""
"Using :class:`auto` with :class:`Flag` results in integers that are powers "
"of two, starting with ``1``."
msgstr ""
msgid "The *repr()* of zero-valued flags has changed. It is now::"
msgstr ""
msgid ""
"*IntFlag* is the same as *Flag*, but its members are also integers and can "
"be used anywhere that an integer can be used."
msgstr ""
msgid ""
"If any integer operation is performed with an *IntFlag* member, the result "
"is not an *IntFlag*::"
msgstr ""
msgid "If a *Flag* operation is performed with an *IntFlag* member and:"
msgstr ""
msgid "the result is a valid *IntFlag*: an *IntFlag* is returned"
msgstr ""
msgid ""
"the result is not a valid *IntFlag*: the result depends on the "
"*FlagBoundary* setting"
msgstr ""
msgid "The *repr()* of unnamed zero-valued flags has changed. It is now:"
msgstr ""
msgid ""
"Using :class:`auto` with :class:`IntFlag` results in integers that are "
"powers of two, starting with ``1``."
msgstr ""
msgid ""
":meth:`~object.__str__` is now :meth:`!int.__str__` to better support the "
"*replacement of existing constants* use-case. :meth:`~object.__format__` "
"was already :meth:`!int.__format__` for that same reason."
msgstr ""
msgid ""
"Inversion of an :class:`!IntFlag` now returns a positive value that is the "
"union of all flags not in the given flag, rather than a negative value. This "
"matches the existing :class:`Flag` behavior."
msgstr ""
msgid ""
":class:`!ReprEnum` uses the :meth:`repr() <Enum.__repr__>` of :class:`Enum`, "
"but the :class:`str() <str>` of the mixed-in data type:"
msgstr ""
msgid ":meth:`!int.__str__` for :class:`IntEnum` and :class:`IntFlag`"
msgstr ""
msgid ":meth:`!str.__str__` for :class:`StrEnum`"
msgstr ""
msgid ""
"Inherit from :class:`!ReprEnum` to keep the :class:`str() <str>` / :func:"
"`format` of the mixed-in data type instead of using the :class:`Enum`-"
"default :meth:`str() <Enum.__str__>`."
msgstr ""
msgid ""
"*EnumCheck* contains the options used by the :func:`verify` decorator to "
"ensure various constraints; failed constraints result in a :exc:`ValueError`."
msgstr ""
msgid "Ensure that each value has only one name::"
msgstr ""
msgid ""
"Ensure that there are no missing values between the lowest-valued member and "
"the highest-valued member::"
msgstr ""
msgid ""
"Ensure that any flag groups/masks contain only named flags -- useful when "
"values are specified instead of being generated by :func:`auto`::"
msgstr ""
msgid ""
"CONTINUOUS and NAMED_FLAGS are designed to work with integer-valued members."
msgstr ""
msgid ""
"*FlagBoundary* controls how out-of-range values are handled in *Flag* and "
"its subclasses."
msgstr ""
msgid ""
"Out-of-range values cause a :exc:`ValueError` to be raised. This is the "
"default for :class:`Flag`::"
msgstr ""
msgid ""
"Out-of-range values have invalid values removed, leaving a valid *Flag* "
"value::"
msgstr ""
msgid ""
"Out-of-range values lose their *Flag* membership and revert to :class:`int`."
msgstr ""
msgid ""
"Out-of-range values are kept, and the *Flag* membership is kept. This is the "
"default for :class:`IntFlag`::"
msgstr ""
msgid "Supported ``__dunder__`` names"
msgstr ""
msgid ""
":attr:`~EnumType.__members__` is a read-only ordered mapping of "
"``member_name``:``member`` items. It is only available on the class."
msgstr ""
msgid ""
":meth:`~object.__new__`, if specified, must create and return the enum "
"members; it is also a very good idea to set the member's :attr:`!_value_` "
"appropriately. Once all the members are created it is no longer used."
msgstr ""
msgid "Supported ``_sunder_`` names"
msgstr ""
msgid ":attr:`~Enum._name_` -- name of the member"
msgstr ""
msgid ":attr:`~Enum._value_` -- value of the member; can be set in ``__new__``"
msgstr ""
msgid ""
":meth:`~Enum._missing_` -- a lookup function used when a value is not found; "
"may be overridden"
msgstr ""
msgid ""
":attr:`~Enum._ignore_` -- a list of names, either as a :class:`list` or a :"
"class:`str`, that will not be transformed into members, and will be removed "
"from the final class"
msgstr ""
msgid ""
":attr:`~Enum._order_` -- no longer used, kept for backward compatibility "
"(class attribute, removed during class creation)"
msgstr ""
msgid ""
":meth:`~Enum._generate_next_value_` -- used to get an appropriate value for "
"an enum member; may be overridden"
msgstr ""
msgid ""
"For standard :class:`Enum` classes the next value chosen is the last value "
"seen incremented by one."
msgstr ""
msgid ""
"For :class:`Flag` classes the next value chosen will be the next highest "
"power-of-two, regardless of the last value seen."
msgstr ""
msgid "``_missing_``, ``_order_``, ``_generate_next_value_``"
msgstr "``_missing_``, ``_order_``, ``_generate_next_value_``"
msgid "``_ignore_``"
msgstr "``_ignore_``"
msgid "Utilities and Decorators"
msgstr ""
msgid ""
"*auto* can be used in place of a value. If used, the *Enum* machinery will "
"call an *Enum*'s :meth:`~Enum._generate_next_value_` to get an appropriate "
"value. For *Enum* and *IntEnum* that appropriate value will be the last "
"value plus one; for *Flag* and *IntFlag* it will be the first power-of-two "
"greater than the highest value; for *StrEnum* it will be the lower-cased "
"version of the member's name. Care must be taken if mixing *auto()* with "
"manually specified values."
msgstr ""
msgid ""
"*auto* instances are only resolved when at the top level of an assignment:"
msgstr ""
msgid "``FIRST = auto()`` will work (auto() is replaced with ``1``);"
msgstr ""
msgid ""
"``SECOND = auto(), -2`` will work (auto is replaced with ``2``, so ``2, -2`` "
"is used to create the ``SECOND`` enum member;"
msgstr ""
msgid ""
"``THREE = [auto(), -3]`` will *not* work (``<auto instance>, -3`` is used to "
"create the ``THREE`` enum member)"
msgstr ""
msgid ""
"In prior versions, ``auto()`` had to be the only thing on the assignment "
"line to work properly."
msgstr ""
msgid ""
"``_generate_next_value_`` can be overridden to customize the values used by "
"*auto*."
msgstr ""
msgid ""
"in 3.13 the default ``_generate_next_value_`` will always return the highest "
"member value incremented by 1, and will fail if any member is an "
"incompatible type."
msgstr ""
msgid ""
"A decorator similar to the built-in *property*, but specifically for "
"enumerations. It allows member attributes to have the same names as members "
"themselves."
msgstr ""
msgid ""
"the *property* and the member must be defined in separate classes; for "
"example, the *value* and *name* attributes are defined in the *Enum* class, "
"and *Enum* subclasses can define members with the names ``value`` and "
"``name``."
msgstr ""
msgid ""
"A :keyword:`class` decorator specifically for enumerations. It searches an "
"enumeration's :attr:`~EnumType.__members__`, gathering any aliases it finds; "
"if any are found :exc:`ValueError` is raised with the details::"
msgstr ""
msgid ""
"A :keyword:`class` decorator specifically for enumerations. Members from :"
"class:`EnumCheck` are used to specify which constraints should be checked on "
"the decorated enumeration."
msgstr ""
msgid "A decorator for use in enums: its target will become a member."
msgstr ""
msgid "A decorator for use in enums: its target will not become a member."
msgstr ""
msgid ""
"A decorator to change the :class:`str() <str>` and :func:`repr` of an enum "
"to show its members as belonging to the module instead of its class. Should "
"only be used when the enum members are exported to the module global "
"namespace (see :class:`re.RegexFlag` for an example)."
msgstr ""
msgid "Return a list of all power-of-two integers contained in a flag *value*."
msgstr ""
msgid "Notes"
msgstr "Notatki"
msgid ":class:`IntEnum`, :class:`StrEnum`, and :class:`IntFlag`"
msgstr ""
msgid ""
"These three enum types are designed to be drop-in replacements for existing "
"integer- and string-based values; as such, they have extra limitations:"
msgstr ""
msgid "``__str__`` uses the value and not the name of the enum member"
msgstr ""
msgid ""
"``__format__``, because it uses ``__str__``, will also use the value of the "
"enum member instead of its name"
msgstr ""
msgid ""
"If you do not need/want those limitations, you can either create your own "
"base class by mixing in the ``int`` or ``str`` type yourself::"
msgstr ""
msgid "or you can reassign the appropriate :meth:`str`, etc., in your enum::"
msgstr ""