-
Notifications
You must be signed in to change notification settings - Fork 856
Don't expose PyASCIIObjectState on Python3.14 and newer #5133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Also |
I wonder, in 3.14 Should we just rip out the bitfield decoding on 3.14 (and up) and instead use the API functions? I think we have to drop a couple of the APIs we currently offer, but overall would be a lot less code to maintain, less coupling to cpython details, and a lot sounder. |
Ah neat, guess I should have checked that. This seems like a good idea, let me see how hard it is... |
I don't see how to implement |
For whatever reason, ffi-check is broken on 3.14, but only on Windows 🙃 |
I can't reproduce the 3.14 windows failures on my Windows setup. |
I was thinking maybe to make those functions inaccessible on 3.14 +?
I will try to find time to look on Monday. |
@ngoldbaum Beat me to the punch; can you grant me commit access to your branch? I was thinking of adding a deprecation message to the entire PyASCIIObject (due to python/cpython#133085). Also this: clin1234@21ce132 |
Also, this: https://github.com/python/cpython/blob/3.14/Include/cpython/unicodeobject.h#L102-L162 |
The last push removes I think the mysterious Windows failures went away? The remaining failures are unrelated issues in the |
Spoke too soon. Somehow the thing we did with the bindgen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, couple of final tweaks and then I think good to merge 👍
The windows ffi check is at least not going to block merge, so I suggest we merge this, ship 0.25, and investigate / clean up separately.
Co-authored-by: David Hewitt <mail@davidhewitt.dev>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Fixes #5131.
This changed in between alpha 7 and beta 1: python/cpython#133085