Yury Selivanov added the comment: > 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20438> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com