-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
bpo-45459: Add Py_buffer to limited API #29991
Conversation
This PR is stale because it has been open for 30 days with no activity. |
a990f73
to
200d441
Compare
1c41c9d
to
ef19458
Compare
@encukou could you take a look, please? |
I'll get to it this week. |
Include/buffer.h
Outdated
* | ||
*/ | ||
|
||
typedef struct bufferinfo { |
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.
Can we leave out the bufferinfo
tag? Anonymous structs are well-supported nowadays, and only Py_buffer
should be public.
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.
Good idea!
ef19458
to
6119c2b
Compare
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.
Looks good, let's get it in! Thanks!
This change broke our project build because when cpython/object.h is including buffer.h it is forcing it to resolve along the search path, and the compiler is hitting the buffer.h in our project rather than the one in the Python include directory. Should it not be using a relative include, ie. |
This PR is merged and closed. Please discuss this issue on the Python bug tracker. |
Py_buffer
structPyBuffer_*()
API functionsPyBUF_*
constantsPy_bf_getbuffer
andPy_bf_releasebuffer
type slotsPyMemoryView_FromBuffer()
APImake regen-limited-abi
PyPickleBuffer*()
API ???https://bugs.python.org/issue45459
Automerge-Triggered-By: GH:encukou