]> granicus.if.org Git - python/commit
Use getdoc(object) instead of object.__doc__ to fix indentation problems.
authorKa-Ping Yee <ping@zesty.ca>
Sat, 19 Feb 2005 22:58:26 +0000 (22:58 +0000)
committerKa-Ping Yee <ping@zesty.ca>
Sat, 19 Feb 2005 22:58:26 +0000 (22:58 +0000)
commitbba6acc714710e7e0190e4eba300b1dc4e492ecf
treefc2034429dd30b332d5beabbd83318c346a8e95e
parent3c24d96bc5b7323c945fc09e4f8726c43c25e6c7
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