| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | bpo-35899: Fix Enum handling of empty and weird strings (GH-11891) | Miss Islington (bot) | 2019-03-08 | 1 | -0/+17 |
| | | | | | | | | | | 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 8b914d2767acba3a9e78f1dacdc2d61dbfd7e304) Co-authored-by: Brennan D Baraban <34765317+bdbaraban@users.noreply.github.com> | ||||
| * | bpo-35717: Fix KeyError exception raised when using enums and compile ↵ | Miss Islington (bot) | 2019-01-30 | 1 | -0/+9 |
| | | | | | | | | | (GH-11523) (GH-11669) https://bugs.python.org/issue17467 (cherry picked from commit 1fd06f1eca80dcbf3a916133919482a8327f3da4) Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr> | ||||
| * | bpo-34536: raise error for invalid _missing_ results (GH-9147) (GH-9978) | Victor Stinner | 2018-10-19 | 1 | -0/+32 |
| | | | | * raise exception if _missing_ returns None or invalid type | ||||
| * | bpo-34909: keep searching mixins until base class is found (GH-9737) (GH-9738) | Miss Islington (bot) | 2018-10-06 | 1 | -0/+21 |
| | | | | (cherry picked from commit cd45385ffad8910293e5659cfe7ab036e70613b7) | ||||
| * | [3.7] bpo-29577: Enum: mixin classes don't mix well with already mixed Enums ↵ | Ethan Furman | 2018-09-22 | 1 | -0/+199 |
| | | | | | | (GH-9328) (GH-9486) * bpo-29577: allow multiple mixin classes | ||||
| * | [3.7] bpo-34282: Fix Enum._convert method shadowing members named _convert ↵ | orlnub123 | 2018-09-10 | 1 | -0/+17 |
| | | | | | | (GH-9034) * Fix Enum._convert shadowing members named _convert | ||||
| * | [3.7] bpo-33217: deprecate non-Enum lookups in Enums (GH-6392) | Ethan Furman | 2018-04-12 | 1 | -3/+57 |
| | | | | | | | deprecate non-Enum lookups in Enums Lookups such as `1 in Color` and `2 in SomeFlag()` will raise TypeError in 3.8+. | ||||
| * | bpo-31801: Enum: add _ignore_ as class option (#5237) | Ethan Furman | 2018-01-22 | 1 | -0/+33 |
| | | | | | | | | | | | | | | | | | * 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_ | ||||
| * | bpo-31370: Remove support for threads-less builds (#3385) | Antoine Pitrou | 2017-09-07 | 1 | -6/+1 |
| | | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. | ||||
| * | bpo-30616: Functional API of enum allows to create empty enums. (#2304) | Dong-hee Na | 2017-06-21 | 1 | -0/+20 |
| | | | | | | | | | * bpo-30616: Functional API of enum allows to create empty enums. * Update NEWS move addition to avoid conflict | ||||
| * | issue29167: fix race condition in (Int)Flag | Ethan Furman | 2017-01-24 | 1 | -2/+88 |
| |\ | |||||
| | * | closes issue29167: fix race condition in (Int)Flag | Ethan Furman | 2017-01-24 | 1 | -2/+88 |
| | | | |||||
| * | | Issue #29338: Fix test_enum. | Serhiy Storchaka | 2017-01-24 | 1 | -0/+4 |
| |/ | |||||
| * | close issue28172: Change all example enum member names to uppercase, per ↵ | Ethan Furman | 2016-11-21 | 1 | -3/+3 |
| | | | | | Guido; patch by Chris Angelico. | ||||
| * | issue23591: fix flag decomposition and repr | Ethan Furman | 2016-09-18 | 1 | -28/+77 |
| | | |||||
| * | issue23591: add auto() for auto-generating Enum member values | Ethan Furman | 2016-09-11 | 1 | -2/+75 |
| | | |||||
| * | issue23591: more docs; slight change to repr | Ethan Furman | 2016-09-04 | 1 | -6/+6 |
| | | |||||
| * | issue23591: bool(empty_flags) == False; more docs & tests | Ethan Furman | 2016-09-02 | 1 | -0/+16 |
| | | |||||
| * | issue23591: add docs; code cleanup; more tests | Ethan Furman | 2016-09-02 | 1 | -17/+71 |
| | | |||||
| * | issue23591: add Flags, IntFlags, and tests | Ethan Furman | 2016-08-31 | 1 | -1/+451 |
| | | |||||
| * | issue26981: add _order_ compatibility shim to enum.Enum | Ethan Furman | 2016-08-20 | 1 | -0/+62 |
| | | |||||
| * | Issue26988: remove AutoEnum | Ethan Furman | 2016-08-20 | 1 | -323/+1 |
| | | |||||
| * | Add AutoEnum: automatically provides next value if missing. Issue 26988. | Ethan Furman | 2016-08-05 | 1 | -1/+323 |
| | | |||||
| * | Issue #27626: Merge spelling fixes from 3.5 | Martin Panter | 2016-07-28 | 1 | -10/+10 |
| |\ | |||||
| | * | Issue #27626: Spelling fixes in docs, comments and internal names | Martin Panter | 2016-07-28 | 1 | -10/+10 |
| | | | | | | | | | Based on patch by Ville Skyttä. | ||||
| * | | signal, socket, and ssl module IntEnum constant name lookups now return a | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 2016-06-03 | 1 | -0/+36 |
| | | | | | | | | | | | | | | | | | consistent name for values having multiple names. Ex: signal.Signals(6) now refers to itself as signal.SIGALRM rather than flipping between that and signal.SIGIOT based on the interpreter's hash randomization seed. This helps finish issue27167. | ||||
| * | | Issue #23640: int.from_bytes() no longer bypasses constructors for subclasses. | Serhiy Storchaka | 2016-05-12 | 1 | -0/+12 |
| |\ \ | |/ | |||||
| | * | Issue #23640: int.from_bytes() no longer bypasses constructors for subclasses. | Serhiy Storchaka | 2016-05-12 | 1 | -0/+12 |
| | | | |||||
| * | | issue26893: use mro() to examine class heirarchy | Ethan Furman | 2016-05-01 | 1 | -0/+13 |
| |\ \ | |/ | |||||
| | * | issue26893: use mro() to examine class heirarchy | Ethan Furman | 2016-05-01 | 1 | -0/+13 |
| | | | |||||
| * | | Issue26748: Enum classes should evaluate as True | Ethan Furman | 2016-04-14 | 1 | -0/+13 |
| |\ \ | |/ | |||||
| | * | Issue26748: Enum classes should evaluate as True | Ethan Furman | 2016-04-14 | 1 | -0/+13 |
| | |\ | |||||
| | | * | Issue26748: Enum classes should evaluate as True | Ethan Furman | 2016-04-14 | 1 | -0/+13 |
| | | | | |||||
| | | * | issue23673 | Ethan Furman | 2015-03-19 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | add private method to enum to support replacing global constants with Enum members: - search for candidate constants via supplied filter - create new enum class and members - insert enum class and replace constants with members via supplied module name - replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle modify IntEnum classes to use new method | ||||
| * | | | revert change 87a9dff5106c: pure Enum members again evaluate to True; | Ethan Furman | 2016-01-15 | 1 | -1/+16 |
| | | | | | | | | | | | | | | | | update Finer Points section of docs to cover boolean evaluation; add more tests for pure and mixed boolean evaluation | ||||
| * | | | Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej | Martin Panter | 2015-11-14 | 1 | -0/+7 |
| | | | | |||||
| * | | | Close issue24840: Enum._value_ is queried for bool(); original patch by Mike ↵ | Ethan Furman | 2015-09-18 | 1 | -0/+7 |
| |/ / | | | | | | | Lundy | ||||
| * | | Close issue23900: add default __doc__ to new enumerations that do not ↵ | Ethan Furman | 2015-04-12 | 1 | -5/+5 |
| | | | | | | | | | specify one. | ||||
| * | | Issue23826: fix doc test for -OO runs | Ethan Furman | 2015-04-11 | 1 | -4/+35 |
| | | | |||||
| * | | Fixed test_enum for issue #15582. | Serhiy Storchaka | 2015-04-04 | 1 | -0/+4 |
| | | | |||||
| * | | Issue #23611: Fixed enums pickling tests. Now all picklings work with all | Serhiy Storchaka | 2015-03-31 | 1 | -15/+7 |
| | | | | | | | | | protocols. | ||||
| * | | issue23673 | Ethan Furman | 2015-03-19 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | | | | add private method to enum to support replacing global constants with Enum members: - search for candidate constants via supplied filter - create new enum class and members - insert enum class and replace constants with members via supplied module name - replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle modify IntEnum classes to use new method | ||||
| * | | Issue22506: merge from 3.4 | Ethan Furman | 2014-10-14 | 1 | -0/+12 |
| |\ \ | |/ | |||||
| | * | Issue22506: added methods on base Enum class now show up in dir of Enum ↵ | Ethan Furman | 2014-10-14 | 1 | -0/+12 |
| | | | | | | | | | subclass (3.4) | ||||
| * | | Close issue21706: add 'start' parameter to functional API | Ethan Furman | 2014-09-17 | 1 | -0/+66 |
| |/ | |||||
| * | Issue #21773: Fix TestStdLib.test_pydoc() of test_enum. Patch written by | Victor Stinner | 2014-06-16 | 1 | -3/+1 |
| | | | | | | | | Claudiu Popa. The print_diffs() function was not defined, using the assertEqual() is more reliable. | ||||
| * | Close issue20653: allow Enum subclasses to override __reduce_ex__ | Ethan Furman | 2014-02-18 | 1 | -1/+60 |
| | | |||||
| * | Close issue20534: all pickle protocols now supported. | Ethan Furman | 2014-02-08 | 1 | -7/+205 |
| | | |||||
| * | Close issue20534: test_enum now tests all supported pickle protocols (2 - ↵ | Ethan Furman | 2014-02-07 | 1 | -24/+36 |
| | | | | | HIGHEST_PROTOCOL, inclusive). | ||||
| * | removed Enum.__eq__ as it added nothing | Ethan Furman | 2013-11-13 | 1 | -0/+11 |
| | | |||||
