Content-Length: 283110 | pFad | https://github.com/python/cpython/issues/105156

DA C API: Deprecate Py_UNICODE type · Issue #105156 · python/cpython · GitHub
Skip to content

C API: Deprecate Py_UNICODE type #105156

@vstinner

Description

@vstinner

Python 3.12 removed the last batch of C functions related to the old Py_UNICODE type. But the type itself is still part of the C API. It is still used in some area of the Python code base where the wchar_t type should be used instead.

I propose to deprecate the Py_UNICODE type and schedule its removal in Python 3.15. This type should not be used since Python 3.3: PEP 393.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/python/cpython/issues/105156

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy