This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author JoshN
Recipients JoshN, docs@python, josh.r, martin.panter, pitrou
Date 2016-04-07.00:32:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1459989155.42.0.380872594554.issue26703@psf.upfronthosting.co.za>
In-reply-to
Content
I do understand that the docs are a bit strange on the issue. For example, actually testing the line you referenced ("...fileno will return the same socket and not a duplicate.") by creating 2 sockets and testing sameness with the 'is' operator returns false.

I tried to trim the example code as much as possible - I did test disabling the garbage collector, playing with inheritance, etc, but trimmed them out as they didn't have any effect on my system.


I think my main issue was, when this occurs, the socket 'breaks' as you mentioned instead of closing. Was almost sure it was a bug. Using detach works for this UDP example, but I wasn't sure if detaching the socket actually closes it (e.g. in a stream oriented connection).

So this is considered normal behavior then?
History
Date User Action Args
2016-04-07 00:32:36JoshNsetrecipients: + JoshN, pitrou, docs@python, martin.panter, josh.r
2016-04-07 00:32:35JoshNsetmessageid: <1459989155.42.0.380872594554.issue26703@psf.upfronthosting.co.za>
2016-04-07 00:32:35JoshNlinkissue26703 messages
2016-04-07 00:32:34JoshNcreate