Message338122
| 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:00 | rhettinger | set | recipients: + rhettinger |
| 2019-03-17 09:51:00 | rhettinger | set | messageid: <1552816260.34.0.636895677875.issue36325@roundup.psfhosted.org> |
| 2019-03-17 09:51:00 | rhettinger | link | issue36325 messages |
| 2019-03-17 09:51:00 | rhettinger | create | |