Author yselivanov
Recipients berker.peksag, brett.cannon, larry, matrixise, ncoghlan, nedbat, python-dev, r.david.murray, untitaker, yselivanov
Date 2015-10-26.20:37:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445891831.98.0.355816732662.issue20438@psf.upfronthosting.co.za>
In-reply-to
Content
> 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.
History
Date User Action Args
2015-10-26 20:37:12yselivanovsetrecipients: + yselivanov, brett.cannon, ncoghlan, larry, nedbat, r.david.murray, python-dev, berker.peksag, matrixise, untitaker
2015-10-26 20:37:11yselivanovsetmessageid: <1445891831.98.0.355816732662.issue20438@psf.upfronthosting.co.za>
2015-10-26 20:37:11yselivanovlinkissue20438 messages
2015-10-26 20:37:11yselivanovcreate