Message304553
Heh, of course the socket server also only ends with ctl-C. And I misread the CAN example, it won't spin because the read isn't wrapped in a try/except. So yes, that should use a with on the socket as well, since the with will close the socket on a ctl-C, unlike a close statement after the loop which will never be reached. |
|
Date |
User |
Action |
Args |
2017-10-18 02:12:55 | r.david.murray | set | recipients:
+ r.david.murray, docs@python, Nathaniel Manista |
2017-10-18 02:12:55 | r.david.murray | set | messageid: <1508292775.18.0.213398074469.issue31739@psf.upfronthosting.co.za> |
2017-10-18 02:12:55 | r.david.murray | link | issue31739 messages |
2017-10-18 02:12:54 | r.david.murray | create | |
|