Author terry.reedy
Recipients LambertDW, mmokrejs, terry.reedy
Date 2010-06-25.23:08:17
SpamBayes Score 0.00032977
Marked as misclassified No
Message-id <1277507300.57.0.688817496677.issue4925@psf.upfronthosting.co.za>
In-reply-to
Content
Improved error messages are feature requests because 1) there is no particular guarantee in the doc and 2) changes can break existing code, so should only happen in an new x.y version.

When reporting behavior, it is helpful to give *minimal* code that will reproduce, either in the message if small, or attached. For example, with 3.1.2 on WixXP

>>> import subprocess
>>> subprocess.Popen("xyz")
gives
WindowsError: [Error 2] The system cannot find the file specified

Although in this case the literal name is in the traceback, it is not always. So I am leaving this open. Given that

>>> open('xyx')
gives the more helpful
IOError: [Errno 2] No such file or directory: 'xyx'

it seems it might be possible by using the io code.
History
Date User Action Args
2010-06-25 23:08:20terry.reedysetrecipients: + terry.reedy, mmokrejs, LambertDW
2010-06-25 23:08:20terry.reedysetmessageid: <1277507300.57.0.688817496677.issue4925@psf.upfronthosting.co.za>
2010-06-25 23:08:18terry.reedylinkissue4925 messages
2010-06-25 23:08:17terry.reedycreate