[issue12902] help("modules") executes module code

Terry J. Reedy report at bugs.python.org
Fri Feb 3 01:07:47 CET 2012


Terry J. Reedy <tjreedy at udel.edu> added the comment:

#13902 is essentially a duplicate of this and I may close it.
I am thinking now that executing unknown amounts of unknown code from unknown modules is a really bad idea. If a module just crashes the system, as happened with the OP of the above, there is no way to tell what the culprit is. So if we do not disable 'modules', I thing it should just read directory names and forget about docstrings. In any case, output should be flushed as available if not now.

----------

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


More information about the Python-bugs-list mailing list