Deprecate PyASCIIObject/PyUnicodeObject #131510
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
topic-C-API
topic-unicode
type-feature
A feature request or enhancement
Feature or enhancement
Deprecate, and plan removal of, direct access to string internals:
PyUnicode_IS_COMPACT
macroThis 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
The text was updated successfully, but these errors were encountered: