Skip Montanaro <skip@pobox.com> writes: > Guido> One other, more practical reason to like the rule: "except > Guido> Exception:" would become equivalent to "except:". > > Just to make sure I'm not missing something (I probably am), I still think > the recommended catch-all except construct should become "except > StandardError:" with KeyboardInterrupt migrated to inherit from Exception > instead of StandardError. That is indeed a different issue. If you want to catch everything (including KeyboardInterrupt), you need an except: clause, in which case it is difficult to get at the exception object. Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4