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 martin.panter
Recipients docs@python, martin.panter
Date 2013-12-04.07:21:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386141666.2.0.800726480915.issue19882@psf.upfronthosting.co.za>
In-reply-to
Content
I think the documentation is rather vague about closing the underlying OS socket. Can someone verify if the following is true (*asterisked* bits are my additions), and maybe update the documentation?

socket.close(): Close the socket *object*. *The underlying file descriptor is also closed, unless there are file objects from makefile() still open.*

socket.makefile(): Closing the file object won’t close the *file descriptor* unless *the original socket object and any other file objects have already been closed*.
History
Date User Action Args
2013-12-04 07:21:06martin.pantersetrecipients: + martin.panter, docs@python
2013-12-04 07:21:06martin.pantersetmessageid: <1386141666.2.0.800726480915.issue19882@psf.upfronthosting.co.za>
2013-12-04 07:21:05martin.panterlinkissue19882 messages
2013-12-04 07:21:05martin.pantercreate