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
tkFont may reuse font names #39201
Comments
(sent to me instead of to the bug manager; note that The class tkFont has a problem name it chooses if no
to be unique Note that this bug doesn't strike if you hold a reference To reproduce run the attached program. It produces previously: ('Times', 15, 'bold')
now: ('Times', 18, 'bold')
iterations: 8
mapping: {'font136494612': ('Times',
14, 'bold'), 'font136499772': ('Times',
15, 'bold'), 'font136545468': ('Times',
17, 'bold'), 'font136483156': ('Times',
11, 'bold'), 'font136502700': ('Times',
12, 'bold'), 'font136510460': ('Times',
13, 'bold'), 'font136515228': ('Times',
16, 'bold'), 'font136365348': ('Times', 10, 'bold')}
Traceback (most recent call last):
File "tkfont_bug.py", line 20, in ?
assert 0
AssertionError Raimar |
This bug has bitten me too, in a real program. |
This still happens, but around 2000 iterations here on newer Python |
Uhm, now I'm getting it at around 3 iterations with python-trunk. So, The same could be done for widget and callback naming. |
Patch is really simple and looks ok to me, can we get this committed please. |
New changeset a77e23135675 by Andrew Svetlov in branch 'default': |
I've pushed fix inspired by Guilherme's suggestion. Fix has been applied to 3.3 only because:
Thanks. |
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: