INADA Naoki <songofaca...@gmail.com> added the comment:

BTW, should we have different error message for class methods and instance 
mehtods?

* method: "descriptor 'X' for 'Y' objects doesn't apply to a 'Z' object"
* classmethod: "descriptor 'X' for 'Y' types doesn't apply to a 'Z' type"

Currently, classmethod notice about subtype, but instance method doesn't notice 
about subtype.
Should we notice about subtype in both error message?
Could someone write short, clear, and consistent error message?

----------

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

Reply via email to