Nathaniel Manista <nathan...@google.com> added the comment:

As I am learning from the examples, I don't have the confidence to propose a 
fix to them. :-P

For the IPv4-and-IPv6 "Echo server program": should s be closed at some point 
after "conn, addr = s.accept()"? Should s be closed on the line immediately 
after "conn, addr = s.accept()", should it be closed on the last line (after 
the "with conn:" context is exited), or is either acceptable?

Should the "very simple network sniffer with raw sockets on Windows" have a 
with statement or "s.close()"? Should the "communicate to a CAN network using 
the raw socket protocol" example have a with statement or "s.close()"?

Of course it's possible that I'm misunderstanding one or more things.

----------

_______________________________________
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