Author yselivanov
Recipients larry, louielu, ncoghlan, python-dev, terry.reedy, yselivanov
Date 2017-05-01.21:36:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493674579.88.0.151177610521.issue20401@psf.upfronthosting.co.za>
In-reply-to
Content
> Is there any reason that the second case Terry provide still will failed with ValueError?

> class C:
>    def meth2(**kwds): pass


> ip.signature(C().meth2)

Yes, the reason is that `C().meth2` is an invalid method that can't be called. Try calling `C().meth2()` and you will get a TypeError.

There is no bug here.
History
Date User Action Args
2017-05-01 21:36:19yselivanovsetrecipients: + yselivanov, terry.reedy, ncoghlan, larry, python-dev, louielu
2017-05-01 21:36:19yselivanovsetmessageid: <1493674579.88.0.151177610521.issue20401@psf.upfronthosting.co.za>
2017-05-01 21:36:19yselivanovlinkissue20401 messages
2017-05-01 21:36:19yselivanovcreate