
The PyUnicodeObject structure is removed. Following members are removed from the Unicode structures:. PyArg_ParseTuple() and PyArg_ParseTupleAndKeywords() emitĭeprecationWarning when u, u#, Z, and Z# formats are used. PyUnicode_FromStringAndSize(NULL, size) emit
But theyĪre deprecated only in comment and document if the macro can Py_DEPRECATED(3.10) macro are used as possible.
Following macros, enum members are marked as deprecated. These macros and functions are marked as deprecated, using We can remove legacy APIs keptįor compatibility with Python 2. Since Python 2 didn’t have PEP 393 Unicode implementation, legacyĪPIs might help C extension modules supporting both of Python 2 and 3.īut Python 2 reached the EOL in 2020. This is why this PEP schedule the removal plan again. But the next version of Python 3.9 is Python 3.10, Python 4.0 was expected as next version of Python 3.9 when PEP 393 OldĪPIs were deprecated since then, and the removal was scheduled in PEP 393 was implemented in Python 3.3 which is released in 2012. Removed border between “narrow” and “wide” build of Python. PEP 393 introduced efficient internal representation of Unicode and Rationale Python 4.0 is not scheduled yet Unicode implementation like UTF-8 based implementation in PyPy. Until we drop legacy Unicode object, it is very hard to try other
Supporting legacy Unicode object makes the Unicode implementation more We can remove this overhead too by dropping support of legacy Unicode To support legacy Unicode object, many Unicode APIs must call Str is one of the most used types in Python. This PEP is planning removal of wstr, and wstr_length withĭeprecated APIs using these members by Python 3.12.ĭeprecated APIs which doesn’t use the members are out of scope because PEP 393 deprecated some unicode APIs, and introduced wchar_t *wstr,Īnd Py_ssize_t wstr_length in the Unicode structure to support Toggle light / dark / auto colour theme PEP 623 – Remove wstr from Unicode Author : Inada Naoki BDFL-Delegate : Victor Stinner Discussions-To : Python-Dev thread Status : Final Type : Standards Track Created : 2 Python-Version : 3.10 Resolution : Python-Dev thread PEP 623 – Remove wstr from Unicode | Following system colour scheme Selected dark colour scheme Selected light colour scheme Python Enhancement Proposals