Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
Something like this would be especially helpful for classes using __slots__. The member objects show-up in help(), but there is no way to attach an explanation like we can with property objects. So there is a slots only alternative that would only involve modifying help() and nothing else: class Bicycle: __slots__ = dict( category = 'Primary use: road, cross-over, or hybrid', model = 'Unique six digit vendor-supplied code', size = 'Rider size: child, small, medium, large, extra-large', price = 'Manufacturer suggested retail price', ) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36325> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com