[docs] [issue31739] socket.close recommended but not demonstrated in same-page example code

Nathaniel Manista report at bugs.python.org
Mon Oct 9 15:27:58 EDT 2017


New submission from Nathaniel Manista <nathaniel at google.com>:

https://docs.python.org/3.7/library/socket.html#socket.socket.close says "it is recommended to close() [sockets] explicitly, or to use a with statement around them", but in the example code on the same page at https://docs.python.org/3.7/library/socket.html#example correct use of the .close() method seems to be missing.

----------
assignee: docs at python
components: Documentation
messages: 303993
nosy: Nathaniel Manista, docs at python
priority: normal
severity: normal
status: open
title: socket.close recommended but not demonstrated in same-page example code
type: enhancement
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31739>
_______________________________________


More information about the docs mailing list