You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Undocumented inspect.Signature.from_function and inspect.Signature.from_builtin in docs and by raising a DeprecationWarning since 3.5 (bpo-20438, 3cfec2e).
Have you done any checks how much external code is using the deprecated callables in the wild? I remember when the 3.5 deprecations started, a lot of libraries started emitting them because they stuck to getargspec which was Python 2 compatible.
Activity
hugovk commentedon Sep 29, 2021
inspect.getargspec was deprecated in docs since 3.0 (https://docs.python.org/3.0/library/inspect.html?highlight=getargspec#inspect.getargspec), raising a DeprecationWarning since 3.5 (bpo-20438, 3cfec2e).
inspect.formatargspec was deprecated in docs since 3.5 (https://docs.python.org/3.5/library/inspect.html?highlight=getargspec#inspect.formatargspec), raising a DeprecationWarning since 3.8 (bpo-33582, 46c5cd0).
Undocumented inspect.Signature.from_function and inspect.Signature.from_builtin in docs and by raising a DeprecationWarning since 3.5 (bpo-20438, 3cfec2e).
These can be removed in Python 3.11.
ambv commentedon Sep 29, 2021
Have you done any checks how much external code is using the deprecated callables in the wild? I remember when the 3.5 deprecations started, a lot of libraries started emitting them because they stuck to
getargspecwhich was Python 2 compatible.tirkarthi commentedon Sep 29, 2021
Slightly related, inspect.getfullargspec was also deprecated and later undeprecated. Please find the discussion post this message
https://bugs.python.org/issue36751#msg341128
https://bugs.python.org/issue37010
hugovk commentedon Sep 29, 2021
Of the 188 repos I managed to clone of 200 top PyPI packages, looks like these 9 are still calling them:
botocore
client_python
cython
google-api-python-client
grpc
ipython
pycodestyle
pyrsistent
wrapt
Details at #28618 (comment)
ambv commentedon Oct 20, 2021
New changeset d89fb9a by Hugo van Kemenade in branch 'main':
bpo-45320: Remove long-deprecated inspect methods (GH-28618)
d89fb9a
ambv commentedon Oct 20, 2021
Thanks, Hugo! ✨ 🍰 ✨
bpo-45320: Remove long-deprecated inspect methods (python/cpython#28618)
bpo-45320: Remove long-deprecated inspect methods (python/cpython#28618)