• Tim Peters's avatar
    docroutine() (both instances): Docstrings for class methods weren't · 8ac8be59
    Tim Peters yazdı
    getting displayed, due to a special case here whose purpose I didn't
    understand.  So just disabled the doc suppression here.
    
    Another special case here skips the docs when picking apart a method
    and finding that the im_func is also in the class __dict__ under
    the same name.  That one I understood.  It has a curious consequence,
    though, wrt inherited properties:  a static class copies inherited stuff
    into the inheriting class's dict, and that affects whether or not this
    special case triggers.  The upshoot is that pydoc doesn't show the
    function docstrings of getter/setter/deleter functions of inherited
    properties in the property section when the class is static, but does
    when the class is dynamic (bring up Lib/test/pydocfodder.py under
    GUI pydoc to see this).
    8ac8be59
pydoc.py 82.3 KB