[Python-Dev] disappearing exceptions

Benjamin Peterson musiccomposition at gmail.com
Tue May 20 23:53:54 CEST 2008


In several places in the C code, there are instances where all
exceptions can be completely ignored (akin to a bare except
statement.) after a PyObject_GetAttr call.

A week ago, I fixed one of these in hasattr (issue 2196) by
propagating exceptions that don't inherit Exception (SystemExit,
KeyboardInterrupt). However, there is another patch that propagates
anything that is not a AttributeError (issue 1574217).

How should we approach this?

-- 
Cheers,
Benjamin Peterson
"There's no place like 127.0.0.1."


More information about the Python-Dev mailing list