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 skrah
Recipients Yury.Selivanov, larry, skrah
Date 2014-04-30.12:22:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398860523.15.0.277604564567.issue21399@psf.upfronthosting.co.za>
In-reply-to
Content
In Python2.7, the cls parameter shows up in pydoc:

    frombuf(cls, buf) from __builtin__.type
        Construct a TarInfo object from a 512 byte string buffer.


In 3.5, it doesn't:

    frombuf(buf, encoding, errors) from builtins.type
        Construct a TarInfo object from a 512 byte bytes object.



inspect.signature shows 'self', but not 'cls':

>>> from tarfile import *
>>> from inspect import *
>>> signature(TarInfo.create_gnu_header)
<Signature at 0x7f50cf110cf0 "(self, info, encoding, errors)">
>>> signature(TarInfo.frombuf)
<Signature at 0x7f50cf11cc88 "(buf, encoding, errors)">


So my guess is that this is an oversight.  How about the C docstrings?
Can we get "$cls" for classmethods?
History
Date User Action Args
2014-04-30 12:22:03skrahsetrecipients: + skrah, larry, Yury.Selivanov
2014-04-30 12:22:03skrahsetmessageid: <1398860523.15.0.277604564567.issue21399@psf.upfronthosting.co.za>
2014-04-30 12:22:03skrahlinkissue21399 messages
2014-04-30 12:22:02skrahcreate