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.
Activity
encukou commented on Apr 28, 2025
The discussion identified a use case to address first. I'll close this for now.
pythongh-131510: Use PyUnstable_Unicode_GET_CACHED_HASH()
gh-131510: Use PyUnstable_Unicode_GET_CACHED_HASH() (GH-141520)
pythongh-131510: Use PyUnstable_Unicode_GET_CACHED_HASH() (pythonGH-1…