Author sbt
Recipients docs@python, ezio.melotti, giampaolo.rodola, gvanrossum, pitrou, sbt, serhiy.storchaka
Date 2012-12-31.11:40:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356954052.43.0.633061110097.issue16802@psf.upfronthosting.co.za>
In-reply-to
Content
> The "fileno" argument looks like an implementation detail to me.

It has at least one potential use.  On Windows socket.detach() returns a socket handle but there is no documented way to close it -- os.close() will not work.  The only way to close it that I can see (without resorting to ctypes) is with something like

    socket.socket(fileno=handle).close()
History
Date User Action Args
2012-12-31 11:40:52sbtsetrecipients: + sbt, gvanrossum, pitrou, giampaolo.rodola, ezio.melotti, docs@python, serhiy.storchaka
2012-12-31 11:40:52sbtsetmessageid: <1356954052.43.0.633061110097.issue16802@psf.upfronthosting.co.za>
2012-12-31 11:40:52sbtlinkissue16802 messages
2012-12-31 11:40:52sbtcreate