New submission from Nathaniel Manista <nathan...@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@python
components: Documentation
messages: 303993
nosy: Nathaniel Manista, docs@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue31739>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to