Message221103
This behaviour is indeed a bug. However, I think that the solution you propose is wrong.
If we ignore invalid contents of __signature__ we are masking a bug or incorrect behaviour. In this case, you should have checked the requested attribute name in '__getattr__', and return something other than _Method, if it is a '__signature__'.
Please find attached a patch, that checks if __signature__ is an instance of Signature class, and raises a TypeError if it isn't. |
|
Date |
User |
Action |
Args |
2014-06-20 18:13:56 | yselivanov | set | recipients:
+ yselivanov, ncoghlan, larry, Claudiu.Popa |
2014-06-20 18:13:56 | yselivanov | set | messageid: <1403288036.4.0.553201925868.issue21801@psf.upfronthosting.co.za> |
2014-06-20 18:13:56 | yselivanov | link | issue21801 messages |
2014-06-20 18:13:56 | yselivanov | create | |
|