Skip to content

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

Merged
methane merged 3 commits into
python:masterfrom
methane:pep393-deprecate2
Feb 22, 2021
Merged

methane merged 3 commits into
python:masterfrom
methane:pep393-deprecate2

Conversation

@methane

@methane methane commented Jun 17, 2020 •

Copy link
Copy Markdown
Member

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

See PEP 623.

https://bugs.python.org/issue36346

@methane

methane commented Jun 17, 2020

Copy link
Copy Markdown
Member Author

Argument Clinic should be updated before this pull request.

@methane methane changed the title bpo-36346: Raise DeprecationWarning in deprecated usages. Jun 17, 2020
Comment thread Modules/overlapped.c Resolved
@methane methane changed the title bpo-36346: Raise DeprecationWarning for getargs with 'u', 'Z' Feb 22, 2021
@methane methane changed the title bpo-36346: Emt 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' 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

3 participants