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 serhiy.storchaka
Recipients rhettinger, serhiy.storchaka
Date 2018-12-30.17:48:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1546192124.51.0.0883005560054.issue35619@roundup.psfhosted.org>
In-reply-to
Content
Currently pydoc supports only limited set of data descriptors: builtin member and getset descriptors (this covers slot descriptors and structseq member descriptors) and properties. But it does not fully support custom data descriptors.

For example, after implementing accelerators for namedtuple fileds access in issue32492, if P = namedtuple('P', 'x y'), help(P.x) will output the help for the _tuplegetter class instead of the P.x member.

The proposed PR replaces checks for particular types of data descriptors with a general check. It performs also some refactoring and adds a bunch of tests.
History
Date User Action Args
2018-12-30 17:48:46serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger
2018-12-30 17:48:44serhiy.storchakasetmessageid: <1546192124.51.0.0883005560054.issue35619@roundup.psfhosted.org>
2018-12-30 17:48:44serhiy.storchakalinkissue35619 messages
2018-12-30 17:48:44serhiy.storchakacreate