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 Alexander.Belopolsky
Recipients Alexander.Belopolsky, benjamin.peterson, doko
Date 2010-03-16.23:19:01
SpamBayes Score 4.379619e-11
Marked as misclassified No
Message-id <1268781543.97.0.445794343038.issue8154@psf.upfronthosting.co.za>
In-reply-to
Content
The original report, issue1039 has a better problem description:

"In a windows debug build, an assertion is triggered when os.execvpe is
called with an empty argument list:

self.assertRaises(OSError, os.execvpe, 'no such app-', [], None)"

The patch, file8338/os.diff is complete with a test and should be easy to apply to the trunk.

I would be -0 on the change.  On one hand, POSIX seems to require a non-empty argument list, on the other hand at least Linux and MacOS X appear to be happy with os.execlp('true').  Furthemore, the proposed change will change the exception from os.execlp('no such program') from OSError to ValueError, which is not a backward compatible change.  As such it is certainly not appropriate for bug-fix releases.

As far as 3x series are concerned, I think ValueError exception should be documented.
History
Date User Action Args
2010-03-16 23:19:04Alexander.Belopolskysetrecipients: + Alexander.Belopolsky, doko, benjamin.peterson
2010-03-16 23:19:03Alexander.Belopolskysetmessageid: <1268781543.97.0.445794343038.issue8154@psf.upfronthosting.co.za>
2010-03-16 23:19:02Alexander.Belopolskylinkissue8154 messages
2010-03-16 23:19:01Alexander.Belopolskycreate