mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-45459: Add Py_buffer to limited API (GH-29991)
- [x] ``Py_buffer`` struct - [x] ``PyBuffer_*()`` API functions - [x] ``PyBUF_*`` constants - [x] ``Py_bf_getbuffer`` and ``Py_bf_releasebuffer`` type slots - [x] ``PyMemoryView_FromBuffer()`` API - [x] tests for limited API - [x] ``make regen-limited-abi`` - [x] documentation update - [ ] export ``PyPickleBuffer*()`` API ???
This commit is contained in:
parent
08f8301b21
commit
f66c857572
17 changed files with 308 additions and 131 deletions
|
@ -1,12 +1,6 @@
|
|||
/* Do not renumber the file; these numbers are part of the stable ABI. */
|
||||
#if defined(Py_LIMITED_API)
|
||||
/* Disabled, see #10181 */
|
||||
#undef Py_bf_getbuffer
|
||||
#undef Py_bf_releasebuffer
|
||||
#else
|
||||
#define Py_bf_getbuffer 1
|
||||
#define Py_bf_releasebuffer 2
|
||||
#endif
|
||||
#define Py_mp_ass_subscript 3
|
||||
#define Py_mp_length 4
|
||||
#define Py_mp_subscript 5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue