Skip to content
New issue

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? Sign in to your account

gh-108901: Deprecate inspect.getfullargspec and slate it for removal in 3.15 #112314

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Nov 22, 2023

I've create a new PyPI package to backport skip_bound_arg parameter to previous versions: https://github.com/wemake-services/inspect313

It is not yet published, please let me know if I need to add someone as maintainer / move it somewhere.


📚 Documentation preview 📚: https://cpython-previews--112314.org.readthedocs.build/

@hugovk
Copy link
Member

hugovk commented Nov 22, 2023

Would probably also be a good idea to update the advice in https://docs.python.org/3/whatsnew/3.11.html?highlight=getfullargspec#removed so it no longer recommends getfullargspec:

The getargspec() function, deprecated since Python 3.0; use inspect.signature() or inspect.getfullargspec() instead.

@sobolevn
Copy link
Member Author

@hugovk Thanks! This would need a separate PR.

@encukou
Copy link
Member

encukou commented Apr 25, 2024

What's the reason to use the minimum length of the deprecation period?

@sobolevn
Copy link
Member Author

No real reason, I think that the transition will be rather smooth, considering the existance of https://github.com/wemake-services/inspect313

But, we can set any remove= version, this is not really a problem :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants