bpo-36346: Emit DeprecationWarning for PyArg_Parse() with 'u' or 'Z'. by methane · Pull Request #20927 · python/cpython (original) (raw)
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 andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation2 Commits3 Checks0 Files changed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})
Argument Clinic should be updated before this pull request.
methane changed the title
bpo-36346: Raise DeprecationWarning in deprecated usages. bpo-36346: Raise DeprecationWarning for getargs with 'u', 'Z'
methane changed the title
bpo-36346: Raise DeprecationWarning for getargs with 'u', 'Z' bpo-36346: Emt DeprecationWarning for getargs with 'u', 'Z'
methane changed the title
bpo-36346: Emt DeprecationWarning for getargs with 'u', 'Z' bpo-36346: Emit DeprecationWarning for getargs with 'u', 'Z'
Raise DeprecationWarning when:
- PyArg_ParseTuple with 'u', 'Z' format.
- PyUnicode_FromStringAndSize(NULL, size)
We can not use C level deprecation because these API will be not removed.
methane changed the title
bpo-36346: Emit DeprecationWarning for getargs with 'u', 'Z' bpo-36346: Emit DeprecationWarning for PyArg_Parse() with 'u' or 'Z'.
adorilson pushed a commit to adorilson/cpython that referenced this pull request
Emit DeprecationWarning when PyArg_Parse*() is called with 'u', 'Z' format.
See PEP 623.