Message101199
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. |
|
Date |
User |
Action |
Args |
2010-03-16 23:19:04 | Alexander.Belopolsky | set | recipients:
+ Alexander.Belopolsky, doko, benjamin.peterson |
2010-03-16 23:19:03 | Alexander.Belopolsky | set | messageid: <1268781543.97.0.445794343038.issue8154@psf.upfronthosting.co.za> |
2010-03-16 23:19:02 | Alexander.Belopolsky | link | issue8154 messages |
2010-03-16 23:19:01 | Alexander.Belopolsky | create | |
|