]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Use getdoc(object) instead of object.__doc__ to fix indentation problems.
authorKa-Ping Yee <ping@zesty.ca>
Sat, 19 Feb 2005 22:57:37 +0000 (22:57 +0000)
committerKa-Ping Yee <ping@zesty.ca>
Sat, 19 Feb 2005 22:57:37 +0000 (22:57 +0000)
commit3adf5220ac93538e7696885b10996f835504a490
tree7939e0f20baafa3e13229cc0c83e84160a1a964c
parentfcfa195eec472225025da66194d8ad167436f409
Use getdoc(object) instead of object.__doc__ to fix indentation problems.
Thanks to Robert Dick <dickrp@ece.northwestern.edu> for reporting this bug
and submitting a patch.

Adjust doc(object) to display useful documentation for plain values (e.g.
help([]) now shows the methods on the list instead of just printing "[]").

(This change has been tested interactively, by generating docs for the
standard library, and by running the module documentation webserver.)
Lib/pydoc.py