[issue15435] Strange behavior when AttributeError raise inside a property get function

Nick Coghlan report at bugs.python.org
Tue Jul 24 12:05:00 CEST 2012


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Yup. It's unfortunate, but there's really nothing we can do about it - some protocols use exceptions, and if you raise an exception type that is part of the defined protocol as the result of a genuine error, then you're going to have a fun debugging exercise to deal with.

You'll often see a similar misdiagnosis with TypeError in conversion functions that try several different conversion techniques.

----------
nosy: +ncoghlan
resolution:  -> wont fix
status: open -> closed

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


More information about the Python-bugs-list mailing list