Martin Panter added the comment:

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.

----------
nosy: +martin.panter

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24911>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to