You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
assignee='https://github.com/serhiy-storchaka'closed_at=<Date2014-07-23.19:35:13.821>created_at=<Date2008-11-19.00:14:18.283>labels= ['type-feature', 'expert-tkinter']
title='Remove dead code from Tkinter.py'updated_at=<Date2014-07-25.09:31:54.254>user='https://bugs.python.org/gpolo'
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.
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.
Activity
gpolo commentedon Nov 19, 2008
There are some methods (which call tk commands) that no longer exist,
for a long time now so this patch remove them.
There are also these "indices" functions, which do not belong to the
module space and now are gone too.
BreamoreBoy commentedon Aug 4, 2010
Ther title says it all, can we commit this?
pysquared commentedon Feb 24, 2011
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":
gpolo commentedon Mar 6, 2011
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 ?
serhiy-storchaka commentedon Jan 4, 2013
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.
birkenfeld commentedon Jan 11, 2013
This kind of change is very similar to other "cleanup" changes, so the classification of "not a bug fix" seems valid.
serhiy-storchaka commentedon Jun 2, 2014
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
python-dev commentedon Jul 23, 2014
New changeset 549a7615abe3 by Serhiy Storchaka in branch 'default':
Issue bpo-4350: Removed a number of out-of-dated and non-working for a long time
http://hg.python.org/cpython/rev/549a7615abe3
python-dev commentedon Jul 25, 2014
New changeset 7e6beea0eeab by Serhiy Storchaka in branch 'default':
Issue bpo-22061: Restored empty obsolete methods removed in issue bpo-4350 and
http://hg.python.org/cpython/rev/7e6beea0eeab