| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | [3.8] bpo-42248: [Enum] ensure exceptions raised in ``_missing_`` are ↵ | Ethan Furman | 2021-04-12 | 1 | -13/+18 |
| | | | | | | | | released (GH-25350). (GH-25369) (cherry picked from commit 8c14f5a787b21d5a1eae5d5ee981431d1c0e055f) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> | ||||
| * | bpo-40084: [Enum] dir() includes member attributes (GH-19219) (GH-22853) | Miss Islington (bot) | 2020-12-09 | 1 | -1/+1 |
| | | | | | | (cherry picked from commit 68526fe258da8c01196fd7cf48e8e5f1280bf8fd) Co-authored-by: Angelin BOOZ <9497359+lem2clide@users.noreply.github.com> | ||||
| * | [3.8] [Enum] reformat and add doc strings (GH-23705). (GH-23706) | Ethan Furman | 2020-12-08 | 1 | -51/+127 |
| | | | | * [3.8] [Enum] reformat and add doc strings (GH-23705). | ||||
| * | bpo-41907: [Enum] fix format() behavior for IntFlag (GH-22497) (GH-23704) | Miss Islington (bot) | 2020-12-08 | 1 | -1/+1 |
| | | | | (cherry picked from commit 37440eef7f9a0c27e13fc9ce0850574bb00688b0) | ||||
| * | bpo-41889: [Enum] fix multiple-inheritance regression (GH-22487) (GH-23672) | Miss Islington (bot) | 2020-12-07 | 1 | -3/+8 |
| | | | | (cherry picked from commit c266736ec1f9ebef38b134ceb4832df015711b38) | ||||
| * | [3.8] bpo-39728: Enum: fix duplicate `ValueError` (GH-22277) (GH-22283) | Ethan Furman | 2020-09-17 | 1 | -1/+1 |
| | | | | | | | | fix default `_missing_` to return `None` instead of raising a `ValueError` Co-authored-by: Andrey Darascheka <andrei.daraschenka@leverx.com>. (cherry picked from commit c95ad7a91fbd7636f33a098d3b39964ab083bf49) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> | ||||
| * | _auto_called cleanup (GH-22285) | Miss Islington (bot) | 2020-09-17 | 1 | -1/+1 |
| | | | | | | (cherry picked from commit fc23a9483ef0d7c98bea9f82392377d0b6ef7b18) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> | ||||
| * | bpo-41517: do not allow Enums to be extended (GH-22271) | Miss Islington (bot) | 2020-09-16 | 1 | -5/+14 |
| | | | | | | | fix bug that let Enums be extended via multiple inheritance (cherry picked from commit 3064dbf5df1021e85b507366a7ea448c8895efe7) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> | ||||
| * | bpo-41789: honor object overrides in Enum classes (GH-22250) | Miss Islington (bot) | 2020-09-16 | 1 | -0/+4 |
| | | | | | | | | | EnumMeta double-checks that `__repr__`, `__str__`, `__format__`, and `__reduce_ex__` are not the same as `object`'s, and replaces them if they are -- even if that replacement was intentionally done in the Enum being constructed. This patch fixes that. Automerge-Triggered-By: @ethanfurman (cherry picked from commit 22415ad62555d79bd583b4a7d6a96006624a8277) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> | ||||
| * | bpo-39587: Enum - use correct mixed-in data type (GH-22263) | Miss Islington (bot) | 2020-09-15 | 1 | -1/+12 |
| | | | | | | (cherry picked from commit bff01f3a3aac0c15fe8fbe8b2f561f7927d117a1) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> | ||||
| * | [3.8] bpo-37479: Enum - use correct __format__ (GH-14545) | Ethan Furman | 2020-09-13 | 1 | -2/+3 |
| | | | | | | | * bpo-37479: on Enum subclasses with mixins, __format__ uses overridden __str__. (cherry picked from commit 2f19e82fbe98ce86bcd98a176328af2808b678e8) Co-authored-by: thatneat <thatneat@users.noreply.github.com> | ||||
| * | bpo-40025: Require _generate_next_value_ to be defined before members(GH-19763) | Miss Islington (bot) | 2020-05-27 | 1 | -0/+5 |
| | | | | require `_generate_next_value_` to be defined before members | ||||
| * | Doc: Fix spelling errors of 'initial' in enum.py (GH-16314) | Miss Islington (bot) | 2019-09-21 | 1 | -1/+1 |
| | | | | | | (cherry picked from commit bb16fb2cb8dca1fa1d67621c3175793eda7dbdc2) Co-authored-by: HongWeipeng <hongweichen8888@sina.com> | ||||
| * | bpo-35899: Fix Enum handling of empty and weird strings (GH-11891) | Brennan D Baraban | 2019-03-03 | 1 | -8/+9 |
| | | | | | | | | | | | Co-authored-by: Maxwell <maxwellpxt@gmail.com> Co-authored-by: Stéphane Wirtel <stephane@wirtel.be> https://bugs.python.org/issue35899 | ||||
| * | bpo-35717: Fix KeyError exception raised when using enums and compile (GH-11523) | Rémi Lapeyre | 2019-01-24 | 1 | -1/+1 |
| | | | | https://bugs.python.org/issue17467 | ||||
| * | Speed-up building enums by value, e.g. http.HTTPStatus(200) (#11318) | Andrew Svetlov | 2018-12-26 | 1 | -2/+4 |
| | | | | bpo-35585: Speed up enum by-value lookup | ||||
| * | bpo-34909: keep searching mixins until base class is found (GH-9737) | Ethan Furman | 2018-10-06 | 1 | -3/+1 |
| | | |||||
| * | bpo-29577: Enum: mixin classes don't mix well with already mixed Enums (GH-9328) | Ethan Furman | 2018-09-22 | 1 | -31/+19 |
| | | | | * bpo-29577: allow multiple mixin classes | ||||
| * | bpo-34536: raise error for invalid _missing_ results (GH-9147) | Ethan Furman | 2018-09-12 | 1 | -1/+19 |
| | | | | * raise exception if _missing_ returns None or invalid type | ||||
| * | bpo-34282: Fix Enum._convert shadowing members named _convert (GH-8568) | orlnub123 | 2018-09-12 | 1 | -38/+45 |
| | | | | | | * Fix enum members getting shadowed by parent attributes * Move Enum._convert to EnumMeta._convert_ * Deprecate _convert | ||||
| * | bpo-33217: Raise TypeError for non-Enum lookups in Enums (GH-6651) | Rahul Jha | 2018-09-10 | 1 | -1/+7 |
| | | | | * bpo-33217: Raise TypeError for non-Enum lookups in Enums | ||||
| * | bpo-33866: enum: Stop using OrderedDict (GH-7698) | INADA Naoki | 2018-06-18 | 1 | -13/+5 |
| | | |||||
| * | bpo-31947: remove None default for names param in Enum._create_ (GH-4288) | anentropic | 2018-04-16 | 1 | -1/+1 |
| | | |||||
| * | bpo-31801: Enum: add _ignore_ as class option (#5237) | Ethan Furman | 2018-01-22 | 1 | -1/+19 |
| | | | | | | | | | | | | | | | | | * 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-30152: Reduce the number of imports for argparse. (#1269) | Serhiy Storchaka | 2017-09-25 | 1 | -7/+4 |
| | | |||||
| * | Spelling fixes (#2902) | Ville Skyttä | 2017-08-03 | 1 | -1/+1 |
| | | |||||
| * | bpo-30616: Functional API of enum allows to create empty enums. (#2304) | Dong-hee Na | 2017-06-21 | 1 | -1/+1 |
| | | | | | | | | | * bpo-30616: Functional API of enum allows to create empty enums. * Update NEWS move addition to avoid conflict | ||||
| * | closes issue29167: fix race condition in (Int)Flag | Ethan Furman | 2017-01-24 | 1 | -4/+11 |
| | | |||||
| * | Issue #29103: Remove unused import. Noticed by Jean-Sebastien Bevilacqua. | Raymond Hettinger | 2016-12-30 | 1 | -1/+1 |
| | | |||||
| * | close issue28172: Change all example enum member names to uppercase, per ↵ | Ethan Furman | 2016-11-21 | 1 | -2/+2 |
| | | | | | Guido; patch by Chris Angelico. | ||||
| * | issue23591: fix flag decomposition and repr | Ethan Furman | 2016-09-18 | 1 | -58/+94 |
| | | |||||
| * | Enum._convert: sort by value, then by name | Ethan Furman | 2016-09-11 | 1 | -3/+10 |
| | | |||||
| * | issue23591: add auto() for auto-generating Enum member values | Ethan Furman | 2016-09-11 | 1 | -13/+37 |
| | | |||||
| * | issue23591: more docs; slight change to repr | Ethan Furman | 2016-09-04 | 1 | -8/+5 |
| | | |||||
| * | issue23591: bool(empty_flags) == False; more docs & tests | Ethan Furman | 2016-09-02 | 1 | -0/+3 |
| | | |||||
| * | issue23591: optimize _high_bit() | Ethan Furman | 2016-09-02 | 1 | -7/+2 |
| | | |||||
| * | issue23591: add docs; code cleanup; more tests | Ethan Furman | 2016-09-02 | 1 | -4/+4 |
| | | |||||
| * | issue23591: add Flags, IntFlags, and tests | Ethan Furman | 2016-08-31 | 1 | -10/+217 |
| | | |||||
| * | issue26981: add _order_ compatibility shim to enum.Enum | Ethan Furman | 2016-08-20 | 1 | -2/+15 |
| | | |||||
| * | Issue26988: remove AutoEnum | Ethan Furman | 2016-08-20 | 1 | -122/+13 |
| | | |||||
| * | Add AutoEnum: automatically provides next value if missing. Issue 26988. | Ethan Furman | 2016-08-05 | 1 | -13/+122 |
| | | |||||
| * | signal, socket, and ssl module IntEnum constant name lookups now return a | Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) | 2016-06-03 | 1 | -2/+8 |
| | | | | | | | | | 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. | ||||
| * | issue26893: use mro() to examine class heirarchy | Ethan Furman | 2016-05-01 | 1 | -1/+1 |
| |\ | |||||
| | * | issue26893: use mro() to examine class heirarchy | Ethan Furman | 2016-05-01 | 1 | -1/+1 |
| | | | |||||
| * | | Issue26748: Enum classes should evaluate as True | Ethan Furman | 2016-04-14 | 1 | -0/+6 |
| |\ \ | |/ | |||||
| | * | Issue26748: Enum classes should evaluate as True | Ethan Furman | 2016-04-14 | 1 | -0/+6 |
| | |\ | |||||
| | | * | Issue26748: Enum classes should evaluate as True | Ethan Furman | 2016-04-14 | 1 | -0/+6 |
| | | | | |||||
| | | * | issue23673 | Ethan Furman | 2015-03-19 | 1 | -0/+26 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | -3/+0 |
| | | | | | | | | | | | | | | | | 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 | -1/+1 |
| | | | | |||||
