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

R. David Murray report at bugs.python.org
Tue Oct 17 22:05:13 EDT 2017


R. David Murray <rdmurray at bitdance.com> added the comment:

I think in the echo examples the 'with conn' block should be indented and a
'with s:' added around it.

The network sniffer should probably use a with statement with the
created socket.

The CAN example ends only on ctrl-C, and could go into a fast spin
loop on error, so it probably needs a more extensive rewrite.

----------

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


More information about the docs mailing list