FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Deprecate PyASCIIObject/PyUnicodeObject · Issue #131510 · python/cpython · GitHub

Repository navigation

Deprecate PyASCIIObject/PyUnicodeObject #131510

Closed as not planned
Closed as not planned

Description

Feature or enhancement

Deprecate, and plan removal of, direct access to string internals:

  • `PyASCIIObject, PyCompactUnicodeObject, PyUnicodeObject structs
  • the PyUnicode_IS_COMPACT macro

This will allow reorganizing the structs for optimizations or new features.

One possible new feature is better support for subclasses that need additional C state. The NumPy and PyObjC projects currently do this. Both can adapt to CPython changes relatively quickly, so we can provide unstable API for their use case.

See discussion.

C API WG vote pending.

Linked PRs

Activity

  1. encukou commented on Apr 28, 2025

    MemberAuthor

    The discussion identified a use case to address first. I'll close this for now.

  2. added a commit that references this issue on Nov 13, 2025
  3. added a commit that references this issue on Nov 14, 2025
  4. added a commit that references this issue on Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL