Filip Gruszczyński <grusz...@gmail.com> added the comment:

This is a draft of a patch. I have only used this new ImportError api in once 
place, so it would work with following code:

>>> try:
...  import nosuchmodule  
... except ImportError as e:
...  print(e.module)
... 
nosuchmodule

I have literally no experience with Python core, so I would be very grateful 
for comments and advice, so I could make this patch meet all requirements.

----------
keywords: +patch
Added file: http://bugs.python.org/file21020/1559549_1.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue1559549>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to