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

bpo-36346: Emit DeprecationWarning for PyArg_Parse() with 'u' or 'Z'. #20927

Merged
merged 3 commits into from
Feb 22, 2021

Conversation

methane
Copy link
Member

@methane methane commented Jun 17, 2020

Emit DeprecationWarning when PyArg_Parse*() is called with 'u', 'Z' format.

See PEP 623.

https://bugs.python.org/issue36346

@methane
Copy link
Member Author

methane commented Jun 17, 2020

Argument Clinic should be updated before this pull request.

@methane methane changed the title bpo-36346: Raise DeprecationWarning in deprecated usages. bpo-36346: Raise DeprecationWarning for getargs with 'u', 'Z' Jun 17, 2020
Modules/overlapped.c Outdated Show resolved Hide resolved
@methane methane changed the title bpo-36346: Raise DeprecationWarning for getargs with 'u', 'Z' bpo-36346: Emt DeprecationWarning for getargs with 'u', 'Z' Feb 22, 2021
@methane methane changed the title bpo-36346: Emt DeprecationWarning for getargs with 'u', 'Z' bpo-36346: Emit DeprecationWarning for getargs with 'u', 'Z' Feb 22, 2021
@methane methane force-pushed the pep393-deprecate2 branch 4 times, most recently from 722268d to 4b9927a Compare February 22, 2021 10:01
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 methane changed the title bpo-36346: Emit DeprecationWarning for getargs with 'u', 'Z' bpo-36346: Emit DeprecationWarning for PyArg_Parse() with 'u' or 'Z'. Feb 22, 2021
@methane methane merged commit 91a639a into python:master Feb 22, 2021
@methane methane deleted the pep393-deprecate2 branch February 22, 2021 13:11
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
…pythonGH-20927)

Emit DeprecationWarning when PyArg_Parse*() is called with 'u', 'Z' format.

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

Successfully merging this pull request may close these issues.

3 participants