Oct. 1, 2004
6:28 a.m.
A candidate implementation is up at SF. Patch # 1038256.
It uses the name 'special_exceptions' and includes SystemExit, MemoryError, KeyboardInterrupt and StopIteration (adding/removing exceptions from the list is easy, as is changing the name).
One version of the patch creates 'exceptions.special_exceptions' only, and the other version also creates a builtin.
Since we're trying to catch anything *not* special, is the intended usage something like this: try: func() except special_exceptions: raise except: altfunc() # handle non-special exceptions Raymond