[issue2350] Warn against importing 'exceptions'

Douglas Mayle report at bugs.python.org
Mon Mar 17 21:53:29 CET 2008


Douglas Mayle <douglas at openplans.org> added the comment:

I ran python through a debugger and found that the exceptions module is
imported automatically at load time.  Because of this, when "import
exceptions" is parsed, the module is already loaded, and PyImport_Import
is not called.  In order to correct this, we'll have to either catch
this at the AST, or just handle it in 2to3...

----------
nosy: +douglas

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2350>
__________________________________


More information about the Python-bugs-list mailing list