Message205200
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*. |
|
Date |
User |
Action |
Args |
2013-12-04 07:21:06 | martin.panter | set | recipients:
+ martin.panter, docs@python |
2013-12-04 07:21:06 | martin.panter | set | messageid: <1386141666.2.0.800726480915.issue19882@psf.upfronthosting.co.za> |
2013-12-04 07:21:05 | martin.panter | link | issue19882 messages |
2013-12-04 07:21:05 | martin.panter | create | |
|