[issue1785] "inspect" gets broken by some descriptors

Antoine Pitrou report at bugs.python.org
Fri Jan 11 00:25:26 CET 2008


Antoine Pitrou added the comment:

This is my attempt at a patch for this. It fixes inspect.getmembers and
inspect.classify_class_attrs to work with Dieter's example. I hope it
doesn't mess anything else.

As for pydoc, things look a bit more complicated... The annoying thing
is that the logic to browse object contents is duplicated inside the
different renderers (pydoc.Repr subclasses). Also, I couldn't find any
unit tests for pydoc. Are there any?

----------
nosy: +pitrou
Added file: http://bugs.python.org/file9119/inspect-bug.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1785>
__________________________________


More information about the Python-bugs-list mailing list