This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kristjan.jonsson
Recipients amaury.forgeotdarc, brian.curtin, cgohlke, eric.snow, georg.brandl, kristjan.jonsson, loewis, ncoghlan, piotr.dobrogost, python-dev, techtonik
Date 2012-07-22.11:28:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342956512.26.0.241757810439.issue10854@psf.upfronthosting.co.za>
In-reply-to
Content
An example patch that aims to put the "name" and "path" in str() and repr() representations of ImportError.

Output when _socket.pyd is not found:

>>> import socket
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\pydev\hg\cpython3\lib\socket.py", line 47, in <module>
    import _socket
ImportError: No module named '_socket', _socket,
>>> sys.last_value
<ImportError "No module named '_socket'", '_socket', None>
>>>
History
Date User Action Args
2012-07-22 11:28:32kristjan.jonssonsetrecipients: + kristjan.jonsson, loewis, georg.brandl, amaury.forgeotdarc, ncoghlan, techtonik, brian.curtin, cgohlke, python-dev, eric.snow, piotr.dobrogost
2012-07-22 11:28:32kristjan.jonssonsetmessageid: <1342956512.26.0.241757810439.issue10854@psf.upfronthosting.co.za>
2012-07-22 11:28:31kristjan.jonssonlinkissue10854 messages
2012-07-22 11:28:31kristjan.jonssoncreate