[Python-Dev] __doc__ string of builtin types

Patrick K. O'Brien pobrien@orbtech.com
Thu, 2 May 2002 13:32:30 -0500


[Thomas Heller]
>
> (I've filed a slightly confused bug report 550290.)
>
> "spam".__doc__ is the same as str.__doc__,
> it describes what the str(...) would do. Same for
> 42 . __doc__, and certainly many other objects.
> While normally I don't care about the doc-string of
> these objects, the output of pydoc looks strange:

I agree. I see the same thing with the namespace viewer in PyCrust under
Python 2.2 and it is less than ideal, imho.

---
Patrick K. O'Brien
Orbtech