◐ Shell
clean mode source ↗

Message 63769 - Python tracker

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...