Message140111
| Author |
ncoghlan |
| Recipients |
benjamin.peterson, daniel.urban, eric.araujo, eric.snow, gsakkis, marco.mariani, michael.foord, ncoghlan |
| Date |
2011年07月11日.12:00:14 |
| SpamBayes Score |
3.989786e-07 |
| Marked as misclassified |
No |
| Message-id |
<1310385615.22.0.628045913601.issue8639@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This API has changed around a bit in 3.x, so it is actually inspect.getfullargspec that needs to change (getargspec will inherit the new behaviour though, since it uses getfullargspec internally)
With appropriate docs and tests updates, I don't see a problem with adding the feature, though. Docs should note and tests should ensure that this only goes one level deep - if __call__ isn't a real function either, inspect shouldn't try to follow the descriptor chain down the rabbit hole. Anything else runs the risk of infinite recursion in the face of things like "inspect.getargspec(list)". |
|