[issue10099] socket.fromfd() documentation problem

Senthil Kumaran report at bugs.python.org
Fri Oct 15 10:59:49 CEST 2010


Senthil Kumaran <orsenthil at gmail.com> added the comment:

I think, the original docs *is* pretty intuitive. It says "Duplicate the file descriptor fd and build a socket object".  No one will think that the this method will close the original fd. Person using this method might of course, explicitly close the original fd in some other part of the code (as he may use it after creating the socket object too).

If at all anything is required, a line may be "The original file descriptor is unaffected", but again that seems redundant to me.

----------
nosy: +orsenthil

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10099>
_______________________________________


More information about the Python-bugs-list mailing list