Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
assignee = None
closed_at = <Date 2021-10-20.18:49:31.612>
created_at = <Date 2021-09-29.12:22:30.020>
labels = ['library', '3.11']
title = 'Remove deprecated inspect functions'
updated_at = <Date 2021-11-27.08:45:34.764>
user = 'https://github.com/hugovk'
activity = <Date 2021-11-27.08:45:34.764>
actor = 'hugovk'
assignee = 'none'
closed = True
closed_date = <Date 2021-10-20.18:49:31.612>
closer = 'lukasz.langa'
components = ['Library (Lib)']
creation = <Date 2021-09-29.12:22:30.020>
creator = 'hugovk'
dependencies = 
files = 
hgrepos = 
issue_num = 45320
keywords = ['patch']
message_count = 6.0
messages = ['402860', '402877', '402890', '402906', '404515', '404516']
nosy_count = 3.0
nosy_names = ['lukasz.langa', 'hugovk', 'xtreak']
pr_nums = ['28618', '29813']
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue45320'
versions = ['Python 3.11']
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
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.
Slightly related, inspect.getfullargspec was also deprecated and later undeprecated. Please find the discussion post this message
Of the 188 repos I managed to clone of 200 top PyPI packages, looks like these 9 are still calling them:
Details at #28618 (comment)
New changeset d89fb9a by Hugo van Kemenade in branch 'main':
bpo-45320: Remove long-deprecated inspect methods (GH-28618)
Thanks, Hugo! ✨ 🍰 ✨
No branches or pull requests