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 michael.foord
Recipients michael.foord
Date 2009-09-11.20:50:43
SpamBayes Score 1.4349387e-08
Marked as misclassified No
Message-id <1252702244.44.0.0923996310102.issue6890@psf.upfronthosting.co.za>
In-reply-to
Content
>>> try:
...  open('flooble')
... except Exception as e:
...  pass
... 
[39343 refs]
>>> str(e)
"[Errno 2] No such file or directory: 'flooble'"
[39345 refs]
>>> unicode(e)
u"(2, 'No such file or directory')"

The Unicode representation of an IOError has no information about the
file or directory name. This is a regression from 2.5. Would be nice to
backport a fix to 2.6 if we can.

This bit docutils - and can happen as a side-effect of interpolating
into a Unicode string with %s. The filename information is lost from the
error report.
History
Date User Action Args
2009-09-11 20:50:44michael.foordsetrecipients: + michael.foord
2009-09-11 20:50:44michael.foordsetmessageid: <1252702244.44.0.0923996310102.issue6890@psf.upfronthosting.co.za>
2009-09-11 20:50:43michael.foordlinkissue6890 messages
2009-09-11 20:50:43michael.foordcreate