Message332753
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. |
|
Date |
User |
Action |
Args |
2018-12-30 17:48:46 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger |
2018-12-30 17:48:44 | serhiy.storchaka | set | messageid: <1546192124.51.0.0883005560054.issue35619@roundup.psfhosted.org> |
2018-12-30 17:48:44 | serhiy.storchaka | link | issue35619 messages |
2018-12-30 17:48:44 | serhiy.storchaka | create | |
|