mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Remove buffer API from stable ABI for now, see #10181.
This commit is contained in:
parent
e85da7aa4f
commit
c83bc3c1fb
5 changed files with 8 additions and 11 deletions
|
@ -488,6 +488,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
|
|||
|
||||
/* new buffer API */
|
||||
|
||||
#ifndef Py_LIMITED_API
|
||||
#define PyObject_CheckBuffer(obj) \
|
||||
(((obj)->ob_type->tp_as_buffer != NULL) && \
|
||||
((obj)->ob_type->tp_as_buffer->bf_getbuffer != NULL))
|
||||
|
@ -575,6 +576,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
|
|||
|
||||
/* Releases a Py_buffer obtained from getbuffer ParseTuple's s*.
|
||||
*/
|
||||
#endif /* Py_LIMITED_API */
|
||||
|
||||
PyAPI_FUNC(PyObject *) PyObject_Format(PyObject* obj,
|
||||
PyObject *format_spec);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue