gh-108901: Deprecate inspect.getargvalues and inspect.formatargvalues, provide modern alternative#112639
gh-108901: Deprecate inspect.getargvalues and inspect.formatargvalues, provide modern alternative#112639sobolevn wants to merge 6 commits into
inspect.getargvalues and inspect.formatargvalues, provide modern alternative#112639Conversation
|
Any progress? |
Sorry, something went wrong.
|
@hugovk I've implemented your suggestion about porting to Python 3.13, please take a look. |
Sorry, something went wrong.
vstinner
left a comment
There was a problem hiding this comment.
Please start with a separated PR which adds Signature.from_frame(). Once it will be merge, you can simplify this PR to only deprecate methods.
Sorry, something went wrong.
|
(Copying and pasting my reply from elsewhere :) PEP 387 says two releases of deprecation is the minimum but also:
Does that apply here? If so, and if the replacement is added in 3.13, then the removals should be when 3.13 is EOL in October 2029, meaning removal in 3.18, not 3.15. |
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
|
@sobolevn: This change is now outdated since it refers to Python 3.13. Do you still plan to work on this PR? If not, I suggest closing it. |
Sorry, something went wrong.
Now
getargvaluesis deprecated (together withformatargvalues). People should useSignatureobject instead.inspect313backports newSignature.from_frameto 3.8-3.12: https://github.com/wemake-services/inspect313/blob/a310c03c440156062504b14a6325fbbe84687052/inspect313/__init__.py#L25-L48 and https://github.com/wemake-services/inspect313/blob/master/README.md#replace-inspectgetargvalues-with-inspectsignaturefrom_frameinspectmodule, deprecate old incorrect APIs #108901📚 Documentation preview 📚: https://cpython-previews--112639.org.readthedocs.build/