[issue11356] Include module name on ImportError

2011-02-28 Thread Georg Brandl
Georg Brandl added the comment: This is a dupe of #1559549. -- nosy: +georg.brandl resolution: -> duplicate status: open -> closed superseder: -> ImportError needs attributes for module and file name ___ Python tracker

[issue11356] Include module name on ImportError

2011-02-28 Thread Ram Rachum
Changes by Ram Rachum : -- nosy: +cool-RR ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue11356] Include module name on ImportError

2011-02-28 Thread Nick Coghlan
New submission from Nick Coghlan : Catching ImportError in order to switch to an alternate implementation can mask real failures in imported modules. Attaching the module name as an attribute would allow this to be handled correctly by doing something like: try: import simplejson except Impor