[issue39587] Mixin repr overrides Enum repr in some cases

2020-09-15 Thread Ethan Furman
Change by Ethan Furman : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39587] Mixin repr overrides Enum repr in some cases

2020-09-15 Thread Ethan Furman
Ethan Furman added the comment: New changeset 95b81e2f8c955823dbf5632a817902b8a4916eaa by Miss Islington (bot) in branch '3.9': bpo-39587: Enum - use correct mixed-in data type (GH-22263) (GH-22266) https://github.com/python/cpython/commit/95b81e2f8c955823dbf5632a817902b8a4916eaa

[issue39587] Mixin repr overrides Enum repr in some cases

2020-09-15 Thread miss-islington
miss-islington added the comment: New changeset 8f8ebcca95d3b6ed0a522a9736ab53d6d4f0208c by Miss Islington (bot) in branch '3.8': bpo-39587: Enum - use correct mixed-in data type (GH-22263) https://github.com/python/cpython/commit/8f8ebcca95d3b6ed0a522a9736ab53d6d4f0208c --

[issue39587] Mixin repr overrides Enum repr in some cases

2020-09-15 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +21321 pull_request: https://github.com/python/cpython/pull/22265 ___ Python tracker

[issue39587] Mixin repr overrides Enum repr in some cases

2020-09-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +21322 pull_request: https://github.com/python/cpython/pull/22266 ___ Python tracker ___

[issue39587] Mixin repr overrides Enum repr in some cases

2020-09-15 Thread Ethan Furman
Ethan Furman added the comment: New changeset bff01f3a3aac0c15fe8fbe8b2f561f7927d117a1 by Ethan Furman in branch 'master': bpo-39587: Enum - use correct mixed-in data type (GH-22263) https://github.com/python/cpython/commit/bff01f3a3aac0c15fe8fbe8b2f561f7927d117a1 --

[issue39587] Mixin repr overrides Enum repr in some cases

2020-09-15 Thread Ethan Furman
Ethan Furman added the comment: Yes, the change only considered types with their own copy of `__new__` to be actual data types, so in 3.6 `HexInt` was the recognized data type, but in 3.7+ it was `int` -- which also meant that HexEnum was considered a simple mix-in and its `__repr__` was

[issue39587] Mixin repr overrides Enum repr in some cases

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

[issue39587] Mixin repr overrides Enum repr in some cases

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

[issue39587] Mixin repr overrides Enum repr in some cases

2020-02-09 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Bisecting points to issue29577 that introduced this change. -- nosy: +xtreak ___ Python tracker ___

[issue39587] Mixin repr overrides Enum repr in some cases

2020-02-08 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39587] Mixin repr overrides Enum repr in some cases

2020-02-08 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +barry, eli.bendersky, ethan.furman ___ Python tracker ___ ___ Python-bugs-list

[issue39587] Mixin repr overrides Enum repr in some cases

2020-02-08 Thread Ryan McCampbell
New submission from Ryan McCampbell : In Python 3.6 the following works: class HexInt(int): def __repr__(self): return hex(self) class MyEnum(HexInt, enum.Enum): A = 1 B = 2 C = 3 >>> MyEnum.A However in Python 3.7/8 it instead prints >>> MyEnum.A 0x1 It uses