[issue33408] Enable AF_UNIX support in Windows
Paul Monson
report at bugs.python.org
Fri Aug 2 18:17:33 EDT 2019
Paul Monson <paulmons at gmail.com> added the comment:
If you try to create a datagram socket with the current AF_UNIX changes on Windows the error is:
OSError: [WinError 10047] An address incompatible with the requested protocol was used
All of the examples given will fail to load with AttributeError on Windows because socket.AF_UNIX is not a valid attribute on Windows.
I think it's possible that there is code that detects whether AF_UNIX is an attribute on socket or not and does something different on Windows, but I haven't seen an example of it so far.
I can make the changes to WIN_AF_UNIX when I continue working on this, just in case there is portable code out there somewhere.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33408>
_______________________________________
More information about the Python-bugs-list
mailing list