summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_enum.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue22506: added methods on base Enum class now show up in dir of Enum ↵Ethan Furman2014-10-141-0/+12
| | | | subclass (3.4)
* Issue #21773: Fix TestStdLib.test_pydoc() of test_enum. Patch written byVictor Stinner2014-06-161-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 Furman2014-02-181-1/+60
|
* Close issue20534: all pickle protocols now supported.Ethan Furman2014-02-081-7/+205
|
* Close issue20534: test_enum now tests all supported pickle protocols (2 - ↵Ethan Furman2014-02-071-24/+36
| | | | HIGHEST_PROTOCOL, inclusive).
* removed Enum.__eq__ as it added nothingEthan Furman2013-11-131-0/+11
|
* Close #19263: add tests to ensure __objclass__ correctly set.Ethan Furman2013-10-221-1/+116
|
* Close #19252: better test coverage for Enum. Thanks, CliffMEthan Furman2013-10-171-2/+4
|
* Close #19156: add tests and fix for Enum helper edge cases. Patch from CliffM.Ethan Furman2013-10-071-0/+29
|
* Close #19025: Better error message when trying to delete an Enum member.Ethan Furman2013-09-221-0/+21
| | | | Also slight code reorg for PEP 8 guidelines.
* Close #18693: Enum is now more help() friendly.Ethan Furman2013-09-151-2/+17
|
* Close #18989: enum members will no longer overwrite other attributes, nor be ↵Ethan Furman2013-09-151-11/+26
| | | | overwritten by them.
* Add __reversed__ to Enum. Minor code reorg (moved __members__ to be in ↵Ethan Furman2013-09-151-0/+7
| | | | alpha order).
* Close #18924: Block naive attempts to change an Enum member.Ethan Furman2013-09-061-0/+5
|
* Close #18738: Route __format__ calls to mixed-in type for mixed Enums (such ↵Ethan Furman2013-09-011-2/+100
| | | | as IntEnum).
* Issue 18693: Put custom __dir__ back in place. Will instead look at fixing ↵Ethan Furman2013-08-121-0/+15
| | | | `help()`.
* Close #18693: __dir__ removed from Enum; help() now helpful.Ethan Furman2013-08-101-15/+0
|
* Close #18635: Move class level private attribute from instance to class.Ethan Furman2013-08-041-0/+18
|
* Close #18545: now only executes member_type if no _value_ is assigned in ↵Ethan Furman2013-07-251-0/+16
| | | | __new__.
* Change _names to _names_ since the latter is reserved for Enum use.Ethan Furman2013-07-201-11/+12
| | | | | Before this change only the methods were _single_underscored_; now the attributes are as well.
* Close #18508 -- fix _value2member_map to always have the member's valueEthan Furman2013-07-201-0/+18
|
* closes issue18042 -- a `unique` decorator is added to enum.pyEthan Furman2013-07-191-1/+34
| | | | | The docs also clarify the 'Interesting Example' duplicate-free enum is for demonstration purposes.
* Closes issue 17947. Adds PEP-0435 (Adding an Enum type to the Python ↵Ethan Furman2013-06-141-0/+921
standard library). Missing files added. News entry added.