[New-bugs-announce] [issue36325] Build-out help() to support a class level data dictionary
Raymond Hettinger
report at bugs.python.org
Sun Mar 17 05:28:43 EDT 2019
New submission from Raymond Hettinger <raymond.hettinger at gmail.com>:
class Bicycle:
__data_dictionary__ = 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',
)
>>> help(Bicycle)
class Bicycle(builtins.object)
| Data fields defined here:
|
| 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
|
| ----------------------------------------------------------------------
|
| Data descriptors defined here:
|
| __dict__
| dictionary for instance variables (if defined)
|
| __weakref__
| list of weak references to the object (if defined)
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __data_dictionary__ = {'category': 'Primary use: road, cross-over, or .
----------
components: Library (Lib)
messages: 338121
nosy: rhettinger
priority: normal
severity: normal
status: open
title: Build-out help() to support a class level data dictionary
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36325>
_______________________________________
More information about the New-bugs-announce
mailing list