-
-
Notifications
You must be signed in to change notification settings - Fork 34.6k
C API: Deprecate Py_UNICODE type #105156
Copy link
Copy link
Closed
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Python 3.12 removed the last batch of C functions related to the old
Py_UNICODEtype. But the type itself is still part of the C API. It is still used in some area of the Python code base where thewchar_ttype should be used instead.I propose to deprecate the
Py_UNICODEtype and schedule its removal in Python 3.15. This type should not be used since Python 3.3: PEP 393.Linked PRs