[issue18156] Add an 'attr' attribute to AttributeError

Andrea Griffini report at bugs.python.org
Sat Jul 6 19:08:18 CEST 2013


Andrea Griffini added the comment:

Even porting to the new wonderful 'attr' field is not going to make the code correct... (the exception could be bubbling up from code down ten frames about a different unrelated attribute that happens to have the same name in a different object). BTW cpython has a lot of those "except AttributeError" fragments coded in C with PyErr_ExceptionMatches.

----------

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


More information about the Python-bugs-list mailing list