This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients Nathaniel Manista, docs@python, r.david.murray
Date 2017-10-18.02:12:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1508292775.18.0.213398074469.issue31739@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-10-18 02:12:55r.david.murraysetrecipients: + r.david.murray, docs@python, Nathaniel Manista
2017-10-18 02:12:55r.david.murraysetmessageid: <1508292775.18.0.213398074469.issue31739@psf.upfronthosting.co.za>
2017-10-18 02:12:55r.david.murraylinkissue31739 messages
2017-10-18 02:12:54r.david.murraycreate