This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients markroseman, python-dev, terry.reedy
Date 2016-07-15.21:03:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468616615.82.0.604798588174.issue25507@psf.upfronthosting.co.za>
In-reply-to
Content
In #27515, Nick Coughlin said that 'del a.b', would work if sys.modules('a.b') is also deleted -- unless a.b objects to being reloaded.  This seems not a problem for the current 8 tkinter submodules.  The attached tkimports.py runs without error.

I am not going to patch 2.7, which does not have the bug, just for the import reduction.  The last patch could be applied to 3.5 since it does not remove anything from PyShell.  Putting the three warning functions in a class and making the warning global a class attribute (a future issue) would be a different matter.
History
Date User Action Args
2016-07-15 21:03:35terry.reedysetrecipients: + terry.reedy, markroseman, python-dev
2016-07-15 21:03:35terry.reedysetmessageid: <1468616615.82.0.604798588174.issue25507@psf.upfronthosting.co.za>
2016-07-15 21:03:35terry.reedylinkissue25507 messages
2016-07-15 21:03:35terry.reedycreate