Message253501
> This is the situation I am in: coverage.py uses getargspec in a very simple way in its tooling. I support 2.7 and 3.5, so I have to do this:
try:
getargspec = inspect.getfullargspec
except AttributeError:
getargspec = inspect.getargspec
argspec = getargspec(function)
I think it was me who submitted this code to coverage.py.. :) It might be worthwhile to keep it anyways, as getfullargspec uses the signature API, which supports a wider range of callables. |
|
Date |
User |
Action |
Args |
2015-10-26 20:37:12 | yselivanov | set | recipients:
+ yselivanov, brett.cannon, ncoghlan, larry, nedbat, r.david.murray, python-dev, berker.peksag, matrixise, untitaker |
2015-10-26 20:37:11 | yselivanov | set | messageid: <1445891831.98.0.355816732662.issue20438@psf.upfronthosting.co.za> |
2015-10-26 20:37:11 | yselivanov | link | issue20438 messages |
2015-10-26 20:37:11 | yselivanov | create | |
|