On Sep 6, 1:14 pm, "Jan Kaliszewski" <z...@chopin.edu.pl> wrote: > 05-09-2009 r <rt8...@gmail.com> wrote: > > i find the with statement (while quite useful in general > > practice) is not a "cure all" for situations that need and exception > > caught. > > In what sense?
*ahem*! in the sense that the with statement (while quite useful in general practice) is not a "cure all" for situations that need and exception caught ;-) > I think that: > > with open(...) as f: > foo... > > is equivalent to: > > f = open(...) > try: > foo... > finally: > f.close() > > Obviously it doesn't substitute catching with 'except' My sentiments exactly...? Get Enlightened -> http://jjsenlightenments.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list