[Python-ideas] Docstrings for namedtuple
Serhiy Storchaka
storchaka at gmail.com
Wed Dec 12 18:40:03 CET 2012
More information about the Python-ideas mailing list
Wed Dec 12 18:40:03 CET 2012
- Previous message: [Python-ideas] Python is not perfect - let's add 'Wart' status to track
- Next message: [Python-ideas] Docstrings for namedtuple
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
What interface is better for specifying namedtuple field docstrings?
Point = namedtuple('Point', 'x y',
doc='Point: 2-dimensional coordinate',
field_docs=['abscissa', 'ordinate'])
or
Point = namedtuple('Point', [('x', 'absciss'), ('y', 'ordinate')],
doc='Point: 2-dimensional coordinate')
?
http://bugs.python.org/issue16669
- Previous message: [Python-ideas] Python is not perfect - let's add 'Wart' status to track
- Next message: [Python-ideas] Docstrings for namedtuple
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list