syntax question - if 1:print 'a';else:print 'b'

Carsten Haese carsten at uniqsys.com
Thu Oct 27 14:16:24 EDT 2005


On Thu, 2005-10-27 at 14:00, Gregory Piñero wrote:
> Not quite because if something(3) fails, I still want something(4) to
> run.  

def something_ignore_exceptions(x):
  try: something(x)
  except: pass

something_ignore_exceptions(1)
something_ignore_exceptions(2)
# etc...

HTH,

Carsten Haese





More information about the Python-list mailing list