Tim Peters wrote: > [Aahz] > >>May I suggest yet one more alteration: >> >> try: >> ...code... >> except (KeyboardInterrupt,SystemExit): >> raise >> except: >> ...handler... > > > Not unless you want to run around editing hundreds of modules. Why can't we simply change the default for bare except clauses? I.e. try: ... except: ... gets equivalent to try: ... except StandardError: ... To catch everything, write: try: ... except Exception: ... What about string exceptions? Bye, Walter Dörwald -- Walter Dörwald · LivingLogic AG, Bayreuth/Germany · www.livinglogic.de
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