On Aug 23, 2005, at 10:41 PM, Raymond Hettinger wrote: > [Guido van Rossum] > >> If we syntactically enforce that the bare except, if present, must be >> last, would that remove your objection? I agree that a bare except in >> the middle is an anomaly, but that doesn't mean we can't keep bare >> except: as a shorthand for except Exception:. >> > > Hmm. Prohibiting mid-suite bare excepts is progress and eliminates > the > case that causes immediate indigestion. > > As for the rest, I'm not as sure and it would be helpful to get > thoughts > from others on this one. My sense is that blocking the clause from > appearing in the middle is treating the symptom and not the disease. > I would rather see "except:" be deprecated eventually, and force the user to say either except Exception, except BaseException, or even better, except ActualExceptionIWantToCatch. James
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