Steve Dower added the comment:

EBADF will still be returned; _PyVerify_fd is only there to prevent the 
assertion dialogs in debug builds. Release builds will not need _PyVerify_fd at 
all (though it's public, so it will remain, but it won't be necessary to 
protect calls into the CRT). As I said, there is a change coming in a CRT 
update that will make file calls behave more like POSIX, ie. returning EBADF 
instead of crashing.

See #4804 and #3545 for the discussions (and complaints) about turning off all 
assertion dialogs. Note that this issue only affects the dialogs in debug 
builds, and that for Python 3.5 we'll be making debug builds more widely 
available so that people can debug their extensions/hosts (see e.g. #22411).

----------

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

Reply via email to