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
Remove dead code from Tkinter.py #48600
Comments
There are some methods (which call tk commands) that no longer exist, There are also these "indices" functions, which do not belong to the |
Ther title says it all, can we commit this? |
Are we sure this is dead code, and not just out of date? e.g. this works, and I use it in production with "if Tkinter.TkVersion >= 8.4": b = Tkinter.Button(root)
b.tk.call('tk::ButtonEnter', b._w) |
If we consider the meaning of "dead code" as that used in compilers, then I meant "out of date" code. If you want to add support for tk::ButtonEnter then I believe you should open a new issue and raise your points there. Anyway, have you read http://www.mail-archive.com/python-list@python.org/msg210494.html ? Does it relate to your use case ? |
LGTM. However I am not sure should this issue be classified as "behavior" or "enhancement". Removed code is not usable in Tk versions which supported in Python 2.7 and 3.2+ and can be removed safely. |
This kind of change is very similar to other "cleanup" changes, so the classification of "not a bug fix" seems valid. |
Patch is synchronized with tip. It also removes Studbutton and Tributton classes which depend on removed methods. These classes are not documented, not tested and never worked in supported Python versions. I even not found reasonable links in Google, except an annotation [1] and autogenerated from Tkinter sources docs. I now think that perhaps we should apply this patch to 2.7 and 3.4 too. Non-working (and non-worked last 10 or 15 or more years) code only confuses people. [1] http://legacy.python.org/search/hypermail/python-1994q2/1023.html |
New changeset 549a7615abe3 by Serhiy Storchaka in branch 'default': |
New changeset 7e6beea0eeab by Serhiy Storchaka in branch 'default': |
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: