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 desbma, docs@python, martin.panter
Date 2015-08-26.01:40:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1440553214.33.0.0200467068002.issue24911@psf.upfronthosting.co.za>
In-reply-to
Content
IMO the change notice for create_connection() should be moved to apply to the “socket” class, perhaps the “Socket Objects” section. Issue 9794 looks like context manager support was added specifically for create_connection(), however any socket object, no matter what function is used to create it, should be usable the same way for free.

Also, we should explicitly document that exiting the context manager (“with” statement) invokes close(), since that affects how the underlying socket is closed when makefile() has been used.
History
Date User Action Args
2015-08-26 01:40:14martin.pantersetrecipients: + martin.panter, docs@python, desbma
2015-08-26 01:40:14martin.pantersetmessageid: <1440553214.33.0.0200467068002.issue24911@psf.upfronthosting.co.za>
2015-08-26 01:40:14martin.panterlinkissue24911 messages
2015-08-26 01:40:13martin.pantercreate