Message 253475 - Python tracker (original) (raw)

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)

It seems like needless churn.