Kovid Goyal added the comment: I have it building with just two simple patches:
https://github.com/kovidgoyal/cpython/commit/fd1ceca4f21135f12ceb72f37d4ac5ea1576594d https://github.com/kovidgoyal/cpython/commit/edb740218c04b38aa0f385188103100a972d608c However, in developing the patches, I discovered what looks like a bug in the CRT close() function. If you double close a valid file descriptor it crashes, rather than calling the invalid parameter handler. python -c "import os; os.close(2); os.close(2)" crashes. This is true for python 2.7.10 built against VS 2008 as well. This contrasts with the behavior of double close() on other operating systems, where it sets errno to EBADF and does not crash. I have not tested it with python 3.5, but I assume the bug is present there as well. ---------- components: -Build, Windows _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25759> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com