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:
scoder 2020-06-06 21:35:10 +02:00 committed by GitHub
parent 68874a8502
commit f7c4e23642
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 60 additions and 2 deletions

4
Objects/typeslots.inc generated
View file

@ -1,6 +1,6 @@
/* Generated by typeslots.py */
0,
0,
offsetof(PyHeapTypeObject, as_buffer.bf_getbuffer),
offsetof(PyHeapTypeObject, as_buffer.bf_releasebuffer),
offsetof(PyHeapTypeObject, as_mapping.mp_ass_subscript),
offsetof(PyHeapTypeObject, as_mapping.mp_length),
offsetof(PyHeapTypeObject, as_mapping.mp_subscript),