| commit | bba6acc714710e7e0190e4eba300b1dc4e492ecf | [log] [tgz] |
|---|---|---|
| author | Ka-Ping Yee <ping@zesty.ca> | Sat Feb 19 22:58:26 2005 +0000 |
| committer | Ka-Ping Yee <ping@zesty.ca> | Sat Feb 19 22:58:26 2005 +0000 |
| tree | fc2034429dd30b332d5beabbd83318c346a8e95e | |
| parent | 3c24d96bc5b7323c945fc09e4f8726c43c25e6c7 [diff] |
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.)