mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
bpo-40724: Support setting buffer slots from type specs (GH-20648)
This is not part of the limited API but makes the buffer slots available for type specs.
This commit is contained in:
parent
68874a8502
commit
f7c4e23642
5 changed files with 60 additions and 2 deletions
|
@ -1,7 +1,12 @@
|
|||
/* 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