exceptions and items in a list

rbt rbt at athop1.ath.vt.edu
Mon Jan 10 15:49:54 EST 2005

If I have a Python list that I'm iterating over and one of the objects 
in the list raises an exception and I have code like this:

     do something to object in list
except Exception:

Does the code just skip the bad object and continue with the other 
objects in the list, or does it stop?


More information about the Python-list mailing list