[issue41517] Able to subclass enum with members by using multiple inheritance

2020-09-16 Thread Ethan Furman
Change by Ethan Furman : -- assignee: -> ethan.furman resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue41517] Able to subclass enum with members by using multiple inheritance

2020-09-16 Thread miss-islington
miss-islington added the comment: New changeset 48f99250ff319e36b15b555128cd62e408d8165f by Miss Islington (bot) in branch '3.9': bpo-41517: do not allow Enums to be extended (GH-22271) https://github.com/python/cpython/commit/48f99250ff319e36b15b555128cd62e408d8165f -- ___

[issue41517] Able to subclass enum with members by using multiple inheritance

2020-09-16 Thread miss-islington
miss-islington added the comment: New changeset 3f4012117bf80aa7c005f8fa6fb8e1f8b1aef5d5 by Miss Islington (bot) in branch '3.8': bpo-41517: do not allow Enums to be extended (GH-22271) https://github.com/python/cpython/commit/3f4012117bf80aa7c005f8fa6fb8e1f8b1aef5d5 -- ___

[issue41517] Able to subclass enum with members by using multiple inheritance

2020-09-16 Thread miss-islington
Change by miss-islington : -- pull_requests: +21332 pull_request: https://github.com/python/cpython/pull/22279 ___ Python tracker ___ __

[issue41517] Able to subclass enum with members by using multiple inheritance

2020-09-16 Thread Ethan Furman
Ethan Furman added the comment: New changeset 3064dbf5df1021e85b507366a7ea448c8895efe7 by Ethan Furman in branch 'master': bpo-41517: do not allow Enums to be extended (#22271) https://github.com/python/cpython/commit/3064dbf5df1021e85b507366a7ea448c8895efe7 --

[issue41517] Able to subclass enum with members by using multiple inheritance

2020-09-16 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +21331 pull_request: https://github.com/python/cpython/pull/22278 ___ Python tracker _

[issue41517] Able to subclass enum with members by using multiple inheritance

2020-09-15 Thread Ethan Furman
Change by Ethan Furman : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list m

[issue41517] Able to subclass enum with members by using multiple inheritance

2020-09-15 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +21326 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22271 ___ Python tracker ___ ___

[issue41517] Able to subclass enum with members by using multiple inheritance

2020-09-14 Thread Ethan Furman
Ethan Furman added the comment: To answer the invariant question, see this post by Guido: https://mail.python.org/pipermail/python-dev/2013-April/125716.html -- ___ Python tracker

[issue41517] Able to subclass enum with members by using multiple inheritance

2020-08-10 Thread Steven D'Aprano
Steven D'Aprano added the comment: The documentation says: "Allowing subclassing of enums that define members would lead to a violation of some important invariants of types and instances." but it isn't clear what those invariants are, or why it is more of a problem for enums than any other