diff options
author | Christian Heimes <christian@python.org> | 2022-02-02 15:03:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-02 15:03:10 (GMT) |
commit | f66c857572a308822c70fd25e0197b6e0dec6e34 (patch) | |
tree | 0014ec4456f837b05462e172655e194385e2ec61 /Include/typeslots.h | |
parent | 08f8301b21648d58d053e1a513db8ed32fbf37dd (diff) | |
download | cpython-f66c857572a308822c70fd25e0197b6e0dec6e34.zip cpython-f66c857572a308822c70fd25e0197b6e0dec6e34.tar.gz cpython-f66c857572a308822c70fd25e0197b6e0dec6e34.tar.bz2 |
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 ???
Diffstat (limited to 'Include/typeslots.h')
-rw-r--r-- | Include/typeslots.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Include/typeslots.h b/Include/typeslots.h index 5800d01..506b055 100644 --- a/Include/typeslots.h +++ b/Include/typeslots.h @@ -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 |