This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | dmaurer |
|---|---|
| Recipients | dmaurer |
| Date | 2008年01月10日.17:39:23 |
| SpamBayes Score | 0.018971559 |
| Marked as misclassified | No |
| Message-id | <1199986772.67.0.313630472197.issue1785@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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 |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年01月10日 17:39:33 | dmaurer | set | spambayes_score: 0.0189716 -> 0.018971559 recipients: + dmaurer |
| 2008年01月10日 17:39:32 | dmaurer | set | spambayes_score: 0.0189716 -> 0.0189716 messageid: <1199986772.67.0.313630472197.issue1785@psf.upfronthosting.co.za> |
| 2008年01月10日 17:39:24 | dmaurer | link | issue1785 messages |
| 2008年01月10日 17:39:23 | dmaurer | create | |