-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Support buffer protocol with type specs #84901
Comments
As far as I can see it in typeslots.h [1], the buffer protocol is still not supported when using type specs: /* Disabled, see bpo-10181 */ It seems that the discussion in bpo-10181 did not lead anywhere at the time (2010-2012). I'm not talking about the limited API or the stable ABI here, I'm talking about using type specs to define an extension type. The work-around is to manually set "PyTypeObject->tp_as_buffer" after creating the type, but since PyType_Ready() then does not see that struct pointer, you also still have to make sure that the type correctly inherits the slots from the base type if you're not defining all of them yourself. Can we just add support for the above slots? [1] Lines 2 to 4 in ca82910
|
Yes, it should be possible to wrap them in #if so they aren't part of the stable ABI. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: