[issue1378] fromfd() and dup() for _socket on WIndows

Christian Heimes report at bugs.python.org
Thu Nov 15 23:19:06 CET 2007


Christian Heimes added the comment:

I've yet another idea for a tiny improvement. Instead of doing

   newfd = _socket.dup(socket_instance.fileno())

I prefer

   newfd = _socket.dup(socket_instance)

It removes some confusing magic and makes error checking on Windows
slightly easier.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1378>
__________________________________


More information about the Python-bugs-list mailing list