STINNER Victor added the comment:

Guido wrote:
"I don't know much about how sockets are implemented on Windows; is there a 
guarantee that the space of possible socket fds doesn't overlap the space of 
possible stream fds?"

Python has a low-level _PyVerify_fd() which uses the __pioinfo private array. 
It looks socket "handles" (small integers betwen 256 and 1000 in my quick 
tests) and file descriptors overlap. Files get file descriptors between 0 and 
2047.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22018>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to