Terry J. Reedy <tjre...@udel.edu> added the comment:

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.

----------
nosy: +tjreedy
title: Improve error message of subprocess -> Improve error message of 
subprocess when cannot open
type: behavior -> feature request
versions: +Python 3.2 -Python 2.5

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

Reply via email to