Roger Serwy <roger.se...@gmail.com> added the comment: I tried this and while IDLE didn't crash, it stalled when running with and without a subprocess. I then tried running this from the regular python interpreter and it stalled there as well. This is not a problem with IDLE, but a problem with pydoc itself.
Steps to reproduce: >>> help() help> modules -- stall -- A blank "Tk" window suddenly appeared, which suggested that something loaded Tkinter. Digging deeper, the "help" utility in Lib/pydoc.py loads every single module found on in sys.path in order to get its __doc__ string. This is doing too much work as the purpose of "modules" is to give a list of available modules. I modified "ModuleScanner" in pydoc.py so that loader.load_module doesn't get called. I set "desc" and "path" do hard-coded strings and now "modules" returns a list very quickly. A blank tkinter window still pops up, however. ---------- components: +Library (Lib) -IDLE nosy: +pje, serwy, terry.reedy title: IDLE closes when requesting a list of available modules in the online help utility -> pydoc - stall when requesting a list of available modules in the online help utility _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13926> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com