PROPOSAL: [].__doc__, "".__doc__, ...
François Pinard
pinard at iro.umontreal.ca
Mon Feb 21 18:38:19 EST 2000
Gerrit Holl <gerrit.holl at pobox.com> writes:
> I think it would be a nice feature for all types with methods to have
> docstrings describing the methods, so [].__doc__ would be a string with
> the descripion of .index, .append... etc.
It already works, at least partly:
>>> print [].append.__doc__
L.append(object) -- append object to end
Still, `print [].__doc__' raises an exception.
--
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Python-list
mailing list