Data descriptors (descriptors having both a __get__ and a __set__ method) often have __doc__ strings. Pydoc displays these for descriptors of type property, but not for other types (e.g., getsets). The attached patch will display __doc__ strings for data descriptors (if available) in the "Data and non-method functions" section of the type description. This patch is intended to be a minimal change. It's possible that inspect.classify_class_attrs should return a new kind for data descriptors (or possibly the "property" kind should include all data descriptors (not just properties)), which could then be handled differently from other non-classified data.
Logged In: YES user_id=21627 The patch looks fine. Can you please also provide a patch for the documentation (libinspect.tex), and the test suite (test_inspect.py)?
Logged In: YES user_id=86307 Apparently, Sourceforge won't let me delete the old patch file (I get a permission denied error), so, to avoid confusion, here is the new patch in a file named pydoc_patch2.txt.