Message304514
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. |
|
| Date |
User |
Action |
Args |
| 2017-10-17 19:03:04 | Nathaniel Manista | set | recipients:
+ Nathaniel Manista, r.david.murray, docs@python |
| 2017-10-17 19:03:04 | Nathaniel Manista | set | messageid: <1508266984.73.0.213398074469.issue31739@psf.upfronthosting.co.za> |
| 2017-10-17 19:03:04 | Nathaniel Manista | link | issue31739 messages |
| 2017-10-17 19:03:04 | Nathaniel Manista | create | |
|