Steve Dower <steve.do...@python.org> added the comment:
While I'm inclined to think it's okay to find the CRT sources (e.g. "C:\Program Files (x86)\Windows Kits\10\Source\10.0.18362.0\ucrt\misc\errno.cpp") and extract the table from there as part of build, the problem I have is that it is woefully incomplete. I'd much rather have a manually managed table. It'd also be nice to expose it through the errno module somehow, probably just as a dict. It also seems like at least some of the WSA* constants (e.g. WSAEBADF==10009) are the equivalent errno plus 10000 (e.g.EBADF==9). Should we be mapping those back to the errno value? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37705> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com