Miss Islington (bot)
8755f0aeb6
bpo-35899: Fix Enum handling of empty and weird strings (GH-11891)
...
Co-authored-by: Maxwell <maxwellpxt@gmail.com >
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be >
https://bugs.python.org/issue35899
(cherry picked from commit 8b914d2767 )
Co-authored-by: Brennan D Baraban <34765317+bdbaraban@users.noreply.github.com >
2019-03-08 13:44:21 -08:00
Miss Islington (bot)
1c79891026
bpo-35717: Fix KeyError exception raised when using enums and compile (GH-11523) (GH-11669)
...
https://bugs.python.org/issue17467
(cherry picked from commit 1fd06f1eca )
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr >
2019-01-30 18:36:51 +01:00
Victor Stinner
0f2fc8bee0
bpo-34536: raise error for invalid _missing_ results (GH-9147) (GH-9978)
...
* raise exception if _missing_ returns None or invalid type
2018-10-19 16:49:30 -07:00
Miss Islington (bot)
453b3b0e87
bpo-34909: keep searching mixins until base class is found (GH-9737) (GH-9738)
...
(cherry picked from commit cd45385ffa )
2018-10-06 00:43:20 -07:00
Ethan Furman
0c076caaa8
[3.7] bpo-29577: Enum: mixin classes don't mix well with already mixed Enums (GH-9328) (GH-9486)
...
* bpo-29577: allow multiple mixin classes
2018-09-21 22:26:32 -07:00
orlnub123
c0d63bf73b
[3.7] bpo-34282: Fix Enum._convert method shadowing members named _convert (GH-9034)
...
* Fix Enum._convert shadowing members named _convert
2018-09-10 09:39:48 -07:00
Ethan Furman
3715176557
[3.7] bpo-33217: deprecate non-Enum lookups in Enums (GH-6392)
...
deprecate non-Enum lookups in Enums
Lookups such as `1 in Color` and `2 in SomeFlag()` will raise TypeError
in 3.8+.
2018-04-11 18:56:25 -07:00
Ethan Furman
a4b1bb4801
bpo-31801: Enum: add _ignore_ as class option ( #5237 )
...
* bpo-31801: Enum: add _ignore_ as class option
_ignore_ is a list, or white-space seperated str, of names that will not
be candidates for members; these names, and _ignore_ itself, are removed
from the final class.
* bpo-31801: Enum: add documentation for _ignore_
* bpo-31801: Enum: remove trailing whitespace
* bpo-31801: Enum: fix bulleted list format
* bpo-31801: add version added for _ignore_
2018-01-22 07:56:37 -08:00
Antoine Pitrou
a6a4dc816d
bpo-31370: Remove support for threads-less builds ( #3385 )
...
* Remove Setup.config
* Always define WITH_THREAD for compatibility.
2017-09-07 18:56:24 +02:00
Dong-hee Na
dcc8ce44c7
bpo-30616: Functional API of enum allows to create empty enums. ( #2304 )
...
* bpo-30616: Functional API of enum allows to create empty enums.
* Update NEWS
move addition to avoid conflict
2017-06-21 09:52:32 -07:00
Ethan Furman
0105606f55
issue29167: fix race condition in (Int)Flag
2017-01-24 12:13:34 -08:00
Ethan Furman
28cf663ff0
closes issue29167: fix race condition in (Int)Flag
2017-01-24 12:12:06 -08:00
Serhiy Storchaka
90f6332382
Issue #29338 : Fix test_enum.
2017-01-24 09:06:22 +02:00
Ethan Furman
23bb6f48ea
close issue28172: Change all example enum member names to uppercase, per Guido; patch by Chris Angelico.
2016-11-21 09:22:05 -08:00
Ethan Furman
3515dcce80
issue23591: fix flag decomposition and repr
2016-09-18 13:15:41 -07:00
Ethan Furman
c16595e567
issue23591: add auto() for auto-generating Enum member values
2016-09-10 23:36:59 -07:00
Ethan Furman
27682d2698
issue23591: more docs; slight change to repr
2016-09-04 11:39:01 -07:00
Ethan Furman
25d94bbf05
issue23591: bool(empty_flags) == False; more docs & tests
2016-09-02 16:32:32 -07:00
Ethan Furman
65a5a47d79
issue23591: add docs; code cleanup; more tests
2016-09-01 23:55:19 -07:00
Ethan Furman
ee47e5cf8a
issue23591: add Flags, IntFlags, and tests
2016-08-31 00:12:15 -07:00
Ethan Furman
e8e61277ff
issue26981: add _order_ compatibility shim to enum.Enum
2016-08-20 07:19:31 -07:00
Ethan Furman
332dbc7325
Issue26988: remove AutoEnum
2016-08-20 00:00:52 -07:00
Ethan Furman
73fc586d9f
Add AutoEnum: automatically provides next value if missing. Issue 26988.
2016-08-05 16:03:16 -07:00
Martin Panter
8bde911115
Issue #27626 : Merge spelling fixes from 3.5
2016-07-28 01:30:58 +00:00
Martin Panter
eb9957065a
Issue #27626 : Spelling fixes in docs, comments and internal names
...
Based on patch by Ville Skyttä.
2016-07-28 01:11:04 +00:00