mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Merged in py3k-buffer branch to main line. All objects now use the buffer protocol in PEP 3118.
This commit is contained in:
parent
3de862df45
commit
b99f762f10
22 changed files with 1732 additions and 688 deletions
|
|
@ -3251,10 +3251,8 @@ inherit_slots(PyTypeObject *type, PyTypeObject *base)
|
|||
basebase = base->tp_base;
|
||||
if (basebase->tp_as_buffer == NULL)
|
||||
basebase = NULL;
|
||||
COPYBUF(bf_getreadbuffer);
|
||||
COPYBUF(bf_getwritebuffer);
|
||||
COPYBUF(bf_getsegcount);
|
||||
COPYBUF(bf_getcharbuffer);
|
||||
COPYBUF(bf_getbuffer);
|
||||
COPYBUF(bf_releasebuffer);
|
||||
}
|
||||
|
||||
basebase = base->tp_base;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue