[issue28214] Improve exception reporting for problematic __set_name__ attributes

Nick Coghlan report at bugs.python.org
Sat Oct 8 23:06:53 EDT 2016


Nick Coghlan added the comment:

Slight change, as it makes sense to reference the special method name explicitly:

TypeError: Error calling __set_name__ on 'BadIdea' instance 'attr' in 'NotGoingToWork': 'NoneType' object is not callable

TypeError: Error calling __set_name__ on 'FaultyImplementation' instance 'attr' in 'TheoreticallyCouldWork': ZeroDivisionError: division by zero

----------

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


More information about the Python-bugs-list mailing list