[issue27172] Undeprecate inspect.getfullargspec()

Nick Coghlan report at bugs.python.org
Thu Jun 23 14:18:21 EDT 2016


Nick Coghlan added the comment:

OK, as per the above discussion, I've changed the title of this issue to be to undeprecate inspect.getfullargspec().

That change involves two pieces:

- change the documented deprecation of inspect.getfullargspec() to instead be a recommendation to avoid using it in new code, and instead use inspect.signature()
- update the inspect.getargspec() documentation and programmatic deprecation warning to point to both inspect.signature() and inspect.getfullargspec() as potential replacements

That gives folks already using inspect.getfullargspec assurance that it isn't going away anytime soon (if ever), while folks using inspect.getargspec get a lower impact migration path to a more Python 3 friendly version of the callable introspection API.

----------
title: Add skip_bound_arg argument to inspect.Signature.from_callable() -> Undeprecate inspect.getfullargspec()

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27172>
_______________________________________


More information about the Python-bugs-list mailing list