char** to {'':('',)}

David Bolen db3l at fitlinxx.com
Tue Sep 4 16:03:28 EDT 2001


"Alex Martelli" <aleax at aleax.it> writes:

> That's why try/finally was introduced -- ENSURE "needed cleanup"
> does get performed no matter how the try-block is exited (this
> includes return as well as exceptions).

I can get try/finally in C (the samples of code under discussion)?
(Well, I guess MS has some custom extensions that work, but it's not
portable)

I agree in languages that support it, that the try/finally construct
is perfect for this sort of thing.  But absent such support, I'm not a
big fan of multiple exits from a code path unless really necessary.

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list