News for hackers. Stuff that matters.
Re:Python socket programming tutorial by rflrob on Wednesday October 17, 2012 @12:18PM (#4665130)
Is there a reason to catch all those exceptions? If you're just sys.exit()ing anyways, why sacrifice all the traceback info?
Re:Python socket programming tutorial by yk on Wednesday October 17, 2012 @11:42PM (#4667405)
You should always assume, that a best effort network fails. Therefore, you should always handle the exceptions ( even in a trivial example).