Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
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_COMPACTmacro
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.