[Python-Dev] Proposing a sys.special_exceptions tuple
python at rcn.com
Fri Oct 1 08:28:17 CEST 2004
> A candidate implementation is up at SF. Patch # 1038256.
> It uses the name 'special_exceptions' and includes SystemExit,
> KeyboardInterrupt and StopIteration (adding/removing exceptions from
> list is
> easy, as is changing the name).
> One version of the patch creates 'exceptions.special_exceptions' only,
> other version also creates a builtin.
Since we're trying to catch anything *not* special, is the intended
usage something like this:
altfunc() # handle non-special exceptions
More information about the Python-Dev