Message223537
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. |
|
Date |
User |
Action |
Args |
2014-07-20 21:10:59 | vstinner | set | recipients:
+ vstinner, gvanrossum, loewis, pitrou, neologix, yselivanov |
2014-07-20 21:10:59 | vstinner | set | messageid: <1405890659.51.0.195121978058.issue22018@psf.upfronthosting.co.za> |
2014-07-20 21:10:59 | vstinner | link | issue22018 messages |
2014-07-20 21:10:59 | vstinner | create | |
|