[issue23902] let exception react to being raised or the setting of magic properties (like __cause__) within Python

Travis Everett report at bugs.python.org
Fri Apr 10 17:38:56 CEST 2015


Travis Everett added the comment:

I attempted to intercept the set with both a property setter and __setattr__ with no luck.

I agree the use-case feels pretty specialized (at least to me). I'm not familiar with Python's source, but as best as I can tell these magic properties get set in the C source in such a way that the changes can't be observed through the typical Python interfaces.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23902>
_______________________________________


More information about the Python-bugs-list mailing list