Amaury Forgeot d'Arc added the comment: > 2. _PyVerify_fd(fd) is always true. Given the current definition: > #define _PyVerify_fd(fd) (_get_osfhandle(fd) >= 0) > for those values of fd _get_osfhandle(fd) >= 0, always.
Hum, are you sure this is the selected implementation? - this code is only in 2.7 http://hg.python.org/cpython/file/v2.7/Include/fileobject.h#l73 - it's protected by #if statements. In your case the first case should be selected, can you verify if it's the case, and if not, why? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17797> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com