Nick Coghlan added the comment:

Fixing the proposed format string accordingly, and also including the 
underlying exception type as I did in the examples:

f"Error calling __set_name__ on {type(the_attr).__name__!r} instance 
{the_attr_name!r} in {class_being_defined.__name__!r}: 
{type(raised_exc).__name__}: {str(raised_exc)}"

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28214>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to