[docs] [issue24911] Context manager of socket.socket is not documented

zodalahtathi report at bugs.python.org
Fri Aug 21 22:34:07 CEST 2015


New submission from zodalahtathi:

socket.socket has a context manager to automatically close the socket with the `with` statement: https://hg.python.org/cpython/file/d1bf181afa82/Lib/socket.py#l138

However it is not documented, unlike socket.create_connection.

----------
assignee: docs at python
components: Documentation
messages: 248979
nosy: docs at python, zodalahtathi
priority: normal
severity: normal
status: open
title: Context manager of socket.socket is not documented
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24911>
_______________________________________


More information about the docs mailing list