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 izbyshev
Recipients izbyshev, vstinner
Date 2018-02-20.23:54:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519170856.46.0.467229070634.issue32890@psf.upfronthosting.co.za>
In-reply-to
Content
Demo:

>>> os.execve('', ['a'], {})
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [WinError 0] The operation completed successfully: ''

The reason is that path_error() used throughout os module always uses GetLastError() on Windows, but some functions are implemented via CRT calls which report errors via errno. It seems that commit 292c83554 caused this issue.
History
Date User Action Args
2018-02-20 23:54:16izbyshevsetrecipients: + izbyshev, vstinner
2018-02-20 23:54:16izbyshevsetmessageid: <1519170856.46.0.467229070634.issue32890@psf.upfronthosting.co.za>
2018-02-20 23:54:16izbyshevlinkissue32890 messages
2018-02-20 23:54:16izbyshevcreate