Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Deprecate PyASCIIObject/PyUnicodeObject #131510

Closed as not planned
Closed as not planned
@encukou

Description

@encukou

Feature or enhancement

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

  • `PyASCIIObject, PyCompactUnicodeObject, PyUnicodeObject structs
  • thePyUnicode_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.

Seediscussion.

C API WG vote pending.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp