Mercurial > cpython-lru_cache-weakref
diff Include/memoryobject.h @ 67419:8a302a09ee83
Remove buffer API from stable ABI for now, see #10181.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Thu, 06 Jan 2011 19:15:47 +0000 |
| parents | 62b61abd02b8 |
| children | 215690b782f8 |
line wrap: on
line diff
--- a/Include/memoryobject.h Thu Jan 06 18:25:55 2011 +0000 +++ b/Include/memoryobject.h Thu Jan 06 19:15:47 2011 +0000 @@ -55,9 +55,11 @@ PyAPI_FUNC(PyObject *) PyMemoryView_FromObject(PyObject *base); +#ifndef Py_LIMITED_API PyAPI_FUNC(PyObject *) PyMemoryView_FromBuffer(Py_buffer *info); /* create new if bufptr is NULL will be a new bytesobject in base */ +#endif /* The struct is declared here so that macros can work, but it shouldn't
