bpo-36346: Emit DeprecationWarning for PyArg_Parse() with 'u' or 'Z'. by methane · Pull Request #20927 · python/cpython

@methane methane changed the title bpo-36346: Raise DeprecationWarning in deprecated usages. bpo-36346: Raise DeprecationWarning for getargs with 'u', 'Z'

Jun 17, 2020

methane

@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

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

@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

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.