[issue32394] socket lib beahavior change in 3.6.4

Steve Dower report at bugs.python.org
Tue Feb 6 19:00:01 EST 2018


Steve Dower <steve.dower at python.org> added the comment:

In this case I like the flags disappearing on older versions, just as they would if you built CPython on a version of Linux that didn't have the flags. The problem is that the Windows SDK always defines enum values for all Windows versions even if you are targeting an older version, as most APIs silently ignore unknown flags. Since there's no way to reliably remove the flags at build time, it'll have to be done at import time.

In Python, existence normally implies availability, so we should maintain that here, especially since this API raises errors with these flags.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32394>
_______________________________________


More information about the Python-bugs-list mailing list