This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients rhettinger
Date 2019-03-17.09:51:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552816260.34.0.636895677875.issue36325@roundup.psfhosted.org>
In-reply-to
Content
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', 
       )
History
Date User Action Args
2019-03-17 09:51:00rhettingersetrecipients: + rhettinger
2019-03-17 09:51:00rhettingersetmessageid: <1552816260.34.0.636895677875.issue36325@roundup.psfhosted.org>
2019-03-17 09:51:00rhettingerlinkissue36325 messages
2019-03-17 09:51:00rhettingercreate