[issue25507] IDLE: user code 'import tkinter; tkinter.font' should fail

Terry J. Reedy report at bugs.python.org
Sat Jul 16 20:17:31 EDT 2016


Terry J. Reedy added the comment:

I decided to fix this issue for both 3.5 and 3.6 by deleting the submodules both from tkinter and sys.modules (as discussed in #27515).
I used a new version of tkimports.py to check the result of user imports after the patch.  When this file loaded into IDLE and run with F5, the dir listing for each submodule, after previous import and deletion in run startup, is the same as when the file is run with "<python-path> tkimports".

I opened #27534 to continue run import reduction.  I consider 93d325c64104 and run_autocomplete.diff to be part of that issue.

----------
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed
Added file: http://bugs.python.org/file43761/tkimports.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25507>
_______________________________________


More information about the Python-bugs-list mailing list