[issue45493] str() and repr() of enum different in Python 3.11 from Python <= 3.10

2021-10-19 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I can see why Ethan might be overwhelmed by reverting this change. I tried to merge in his branch but failed, so I'm chucking that work and will try again. -- ___ Python tracker

[issue45493] str() and repr() of enum different in Python 3.11 from Python <= 3.10

2021-10-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: We just need https://github.com/python/cpython/pull/27010 to be done on main to roll it back. str and repr changes are quite painful to foist upon users existing code and tests. -- nosy: +gregory.p.smith ___

[issue45493] str() and repr() of enum different in Python 3.11 from Python <= 3.10

2021-10-18 Thread Ethan Furman
Ethan Furman added the comment: Enum was reverted at the last minute for 3.10. I would like to keep the changes in 3.11 so they get more exposure. I have asked the SC a few times for thoughts about PEP 663, including whether an information PEP needs formal approval, but still haven't heard

[issue45493] str() and repr() of enum different in Python 3.11 from Python <= 3.10

2021-10-18 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: This doesn't seem right, given that PEP 663 has not been approved by the SC yet: 3.9.7 (default, Oct 13 2021, 06:45:31) [Clang 13.0.0 (clang-1300.0.29.3)] ABC.a ABC.b ABC.c ABC.a |main=|@presto[~/projects/python/cpython:1058]% python3.10 /tmp/foo.py

[issue45493] str() and repr() of enum different in Python 3.11 from Python <= 3.10

2021-10-16 Thread Dutcho
Dutcho added the comment: perhaps related to https://bugs.python.org/issue44559 ? -- ___ Python tracker ___ ___ Python-bugs-list

[issue45493] str() and repr() of enum different in Python 3.11 from Python <= 3.10

2021-10-16 Thread Dutcho
Change by Dutcho : -- title: str() and repr() of enum different in Python 3.11 from from Python <= 3.10 -> str() and repr() of enum different in Python 3.11 from Python <= 3.10 ___ Python tracker