Message298582
The docstring of namedtuple class starts with the signature of the constructor. But pydoc now outputs the signature of the constructor for classes (see issue29338). As a result, the signature is duplicated in the output.
For example:
$ ./python -m pydoc functools._CacheInfo
Help on class CacheInfo in functools:
functools._CacheInfo = class CacheInfo(builtins.tuple)
| functools._CacheInfo(hits, misses, maxsize, currsize)
|
| CacheInfo(hits, misses, maxsize, currsize)
|
| Method resolution order:
... |
|
Date |
User |
Action |
Args |
2017-07-18 11:04:22 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, ncoghlan |
2017-07-18 11:04:22 | serhiy.storchaka | set | messageid: <1500375862.86.0.253059570638.issue30959@psf.upfronthosting.co.za> |
2017-07-18 11:04:22 | serhiy.storchaka | link | issue30959 messages |
2017-07-18 11:04:22 | serhiy.storchaka | create | |
|