Message292701
| 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. |
|