Paul Rubin writes: >Hallvard B Furuseth <[EMAIL PROTECTED]> writes: >> 'except None:' works for now, but I don't know if that's safe: >> >> for ex in ZeroDivisionError, None: >> try: >> 1/0 >> except ex: >> print "Ignored first exception." > > class NeverRaised(Exception): pass > > for ex in ZeroDivisionError, NeverRaised:
Heh. Simple enough. Unless some obstinate person raises it anyway... -- Hallvard -- http://mail.python.org/mailman/listinfo/python-list