[issue20438] inspect: Deprecate getfullargspec?

Yury Selivanov report at bugs.python.org
Sun Oct 25 17:13:47 EDT 2015


Yury Selivanov added the comment:

> The docs for getargspec currently read, "This function will be removed in Python 3.6."  Why?  We keep all sorts of old APIs for the sake of backward compatibility, why is this one different?

getargspec was deprecated since 3.0.  Besides that, it returns incomplete information about function parameters: keyword-only parameters won't be introspected at all for instance.

Migration path is very simple and clear -- just use getfullargspec (almost 100% backwards compatible), which won't be removed probably till Python 4.

----------

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


More information about the Python-bugs-list mailing list