Message208507
__new__ and __init__ methods are very special. They can't have signatures, because the mechanism we use to store the signatures won't work. (We hide them as a special first line of the docstring, and __new__ and __init__ can't have custom docstrings.)
In my next patch for #20189,
inspect.signature(object)
will return a valid signature object. But
class C: pass
inspect.signature(C)
still fails in that branch. |
|
Date |
User |
Action |
Args |
2014-01-19 22:42:53 | larry | set | recipients:
+ larry, brett.cannon, ncoghlan, yselivanov |
2014-01-19 22:42:53 | larry | set | messageid: <1390171373.75.0.753120726654.issue20308@psf.upfronthosting.co.za> |
2014-01-19 22:42:53 | larry | link | issue20308 messages |
2014-01-19 22:42:53 | larry | create | |
|