[issue16802] fileno argument to socket.socket() undocumented

Dec. 31, 2012
2:50 p.m.
Richard Oudkerk added the comment:
There is an alternative (documented) interface:
socket.fromfd(handle, socket.AF_INET, socket.SOCK_STREAM).close()
socket.fromfd() duplicates the handle, so that does not close the original handle. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue16802> _______________________________________
4438
Age (days ago)
4438
Last active (days ago)
0 comments
1 participants
participants (1)
-
Richard Oudkerk