Bugs item #467331, was opened at 2001-10-02 15:22 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105470&aid=467331&group_id=5470 Category: Python Interpreter Core Group: Python 2.2 Status: Open Resolution: None Priority: 5 Submitted By: Tim Peters (tim_one) Assigned to: Guido van Rossum (gvanrossum) Summary: ClassType.__doc__ always None Initial Comment: The docstring for a new-style class is too hard to dig out: >>> class C(object): ... "Hi. I'm C's docstring." ... >>> C.__doc__ # no luck >>> getattr(C, "__doc__") # no luck >>> C.__dict__['__doc__'] # bingo "Hi. I'm C's docstring." >>> Note that in restricted mode, you can't eveb get at C.__dict__ (but we don't want to hide the docstring, right?). If the cause+cure for this isn't instantly known you, assign it back to me and I'll dig into it. Note that things like int.__doc__ and file.__doc__ work fine; it appears to be only user-defined types that suffer here. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105470&aid=467331&group_id=5470
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4