-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-41817: use new StrEnum to ensure all members are strings #22348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-41817: use new StrEnum to ensure all members are strings #22348
Conversation
Terry, if the default for stdlib |
I think it would be better to restore the default |
Serhiy is indeed the one to answer the question as he is the tkinter maintainer. As a user, my concern is with breaking existing code and the possible uses of str(). EventTypes are used for the event.type attributes of events passed to event handlers. If a handler can be triggered by more that one type of event and the handler cares which, one condition would be Conditions like |
Terry, fair enough.
As Serhiy explained on Python Dev: The issue with having a custom
and it should be. |
I am also the one who introduced But this is a different issue (I am working on it, the hard part is writing tests). This issue is about trailing commas which convert values into tuples. Thank you Ethan for catching this! Let to fix it. |
Would be nice to add a NEWS entry. This was a serious bug. |
Adding news entry. |
I cannot think of any use for the arbitrary numbers, whether string or int, added by tkinter to the tk strings. |
Serhiy, thank you for the explanation on Python-Dev about |
Thanks @ethanfurman for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8. |
Thanks @ethanfurman for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9. |
GH-22366 is a backport of this pull request to the 3.8 branch. |
GH-22367 is a backport of this pull request to the 3.9 branch. |
…H-22348) * use new StrEnum to ensure all members are strings
https://bugs.python.org/issue41817