PROPOSAL: [].__doc__, "".__doc__, ...
Gerrit Holl
gerrit.holl at pobox.com
Tue Feb 22 14:52:00 EST 2000
<quote name="François Pinard" date="951154699">
> 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
I know.
> Still, `print [].__doc__' raises an exception.
I know. That's what I mean :)
regards,
Gerrit.
--
Comparison Python GUI's: http://www.nl.linux.org/~gerrit/gui.html
Please comment!
More information about the Python-list
mailing list