[Python-ideas] why not try without except?
Georg Brandl
g.brandl at gmx.net
Sat Apr 25 15:32:39 CEST 2009
spir schrieb:
> Well, i think my example circle drawing func answers your question. It does not propagate the exception, instead precisely avoids this.
> wibble()
> try:
> foo()
> bar()
> baz()
> wobble()
> <==>
> wibble()
> try:
> foo()
> bar()
> baz()
> except Exception:
> pass
> wobble()
And while we're at it, let's introduce
on error resume next:
foo()
bar()
baz()
Georg
--
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.
More information about the Python-ideas
mailing list