This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients SilentGhost, Tim.Graham, brett.cannon, eric.snow, larry, ncoghlan, ned.deily, python-dev, r.david.murray, ryan.petrello, serhiy.storchaka, yselivanov
Date 2017-11-30.12:41:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1512045687.86.0.213398074469.issue27172@psf.upfronthosting.co.za>
In-reply-to
Content
If there was a documented deprecation that said "Use <this PyPI package> instead", I'd be OK with that.

The part I wasn't OK with is multiple projects each copying & pasting their own variant of the getfullargspec code and accessing private inspect module APIs in order to get the old behaviour back.

So in order to move this to PyPI instead, we'd need to offer a completely public API that was equivalent to `_signature_from_callable(func, follow_wrapper_chains=False, skip_bound_arg=False, sigcls=Signature)`

`inspect.Signature.from_callable(func, follow_wrapped=False)` comes very close, but misses a subtlety where "getfullargspec" will mention "self" for bound methods, even though it's implicitly supplied, and doesn't need to be supplied by the caller.

That aspect could potentially just be deprecated outright though, with the PyPI replacement following inspect.signature's behaviour and reporting the actual call signature of the bound method.
History
Date User Action Args
2017-11-30 12:41:28ncoghlansetrecipients: + ncoghlan, brett.cannon, larry, ned.deily, r.david.murray, SilentGhost, python-dev, eric.snow, serhiy.storchaka, yselivanov, Tim.Graham, ryan.petrello
2017-11-30 12:41:27ncoghlansetmessageid: <1512045687.86.0.213398074469.issue27172@psf.upfronthosting.co.za>
2017-11-30 12:41:27ncoghlanlinkissue27172 messages
2017-11-30 12:41:27ncoghlancreate