New submission from Dieter Maurer: The inspect functions "getmembers(cls)" and "classify_class_attrs(cls)" require that for a class *cls* each name in "dir(cls)" can be retrieved by "getattr(cls, name)". While this holds for usual class attributes, it may well fail for descriptors (descriptors set by 'zope.interface' are a real world example for this). Attached it as small script that demonstrates the problem.
The bug affects 'pydoc' and the built in 'help' (which is in fact 'pydoc.help'). While 'pydoc' and 'help' do not break completely, they can not present meaningful information for classes with some descriptors ---------- components: Library (Lib) files: inspectBug.py messages: 59675 nosy: dmaurer severity: normal status: open title: "inspect" gets broken by some descriptors type: behavior versions: Python 2.5 Added file: http://bugs.python.org/file9117/inspectBug.py __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1785> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com