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 ncoghlan, rhettinger, serhiy.storchaka
Date 2017-07-18.11:04:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500375862.86.0.253059570638.issue30959@psf.upfronthosting.co.za>
In-reply-to
Content
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:
...
History
Date User Action Args
2017-07-18 11:04:22serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, ncoghlan
2017-07-18 11:04:22serhiy.storchakasetmessageid: <1500375862.86.0.253059570638.issue30959@psf.upfronthosting.co.za>
2017-07-18 11:04:22serhiy.storchakalinkissue30959 messages
2017-07-18 11:04:22serhiy.storchakacreate