GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — C API: Deprecate Py_UNICODE type · Issue #105156 · python/cpython

C API: Deprecate Py_UNICODE type #105156

New issue
Copy link
New issue
Copy link
Closed
Closed
C API: Deprecate Py_UNICODE type#105156
Copy link
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@vstinner
vstinner
opened on May 31, 2023
Issue body actions

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

  • gh-105156: Deprecate the old Py_UNICODE type in C API #105157
  • gh-105156: Cleanup usage of old Py_UNICODE type #105158
  • gh-105156: Argument Clinic avoids Py_UNICODE type #105161
  • gh-105156: Update Lib/test/clinic.test manually #105180
  • gh-105156: Update Unicode C API: remove deprecation #105379
Reacted by Maurice and Páll Haraldsson

Activity

  1. vstinner
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on May 31, 2023
  2. vstinner
    added 7 commits that reference this issue on May 31, 2023

    pythongh-105156: Deprecate the old Py_UNICODE type in C API

    3165ff7

    pythongh-105156: Cleanup usage of old Py_UNICODE type

    f446439

    pythongh-105156: Argument Clinic avoids Py_UNICODE type

    234997b

    pythongh-105156: Argument Clinic avoids Py_UNICODE type

    fc84e0c

    gh-105156: Argument Clinic avoids Py_UNICODE type (#105161)

    dd29ae2

    gh-105156: Deprecate the old Py_UNICODE type in C API (#105157)

    8ed705c

    gh-105156: Cleanup usage of old Py_UNICODE type (#105158)

    7d07e58
  3. vstinner
    closed this as completedon Jun 1, 2023
  4. vstinner
    added 6 commits that reference this issue on Jun 1, 2023

    pythongh-105156: Update test_clinic manually

    e5a93e5

    pythongh-105156: Update Lib/test/clinic.test manually

    e9fdde7

    pythongh-105156: Update Lib/test/clinic.test manually

    e5bee81

    gh-105156: Update Lib/test/clinic.test manually (#105180)

    7f5afec

    pythongh-105156: Update Unicode C API: remove deprecation

    0d7deb0

    gh-105156: Update Unicode C API: remove deprecation (#105379)

    0418196
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.