Slight irritation with try/finally indentation
François Pinard
pinard at iro.umontreal.ca
Mon May 6 12:20:55 EDT 2002
> [François Pinard]
> > [...]
> > setup()
> > try:
> > process()
> > finally:
> > cleanup()
> > [...]
[Jim Abrams]
> setup()
> try:
> process()
> except: # or other exception handling
> pass
> cleanup()
Hello, Jim. These are not equivalent: if we catch the exception with
`except:', it stops propagating.
--
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Python-list
mailing list