[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>

More information about the docs mailing list