-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Add __repr__ for Tkinter Font objects #86042
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
Comments
Currently Font objects have default repr:
Since Font is just an object oriented wrapper for font name, and Font objects with the same name are equal, it is worth to show the font name in the repr and do not show an id.
|
Hi, Storchaka!. |
Serhiy, while I agree this is an enhancement, I don't see that it would break *anyone's* code (this will mostly just affect the REPL output) so is it worth considering a backport? Diohabara, the Python devguide (https://devguide.python.org/) is a very good place to start. The first contribution is always the hardest so please do ask if you need clarification on something. Likely the first thing you will need to do, though, is sign the CLA which means we can legally accept your patch. |
This is a new feature. We do not backport new features to old versions unless they fix some design bug. Nothing bad will happen if we DO NOT backport it. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: