@@ -309,53 +309,6 @@ PyAPI_FUNC(int) PyObject_DelItemString(PyObject *o, const char *key);
309309PyAPI_FUNC (int ) PyObject_DelItem (PyObject * o , PyObject * key );
310310
311311
312- /* === Old Buffer API ============================================ */
313-
314- /* FIXME: usage of these should all be replaced in Python itself
315- but for backwards compatibility we will implement them.
316- Their usage without a corresponding "unlock" mechanism
317- may create issues (but they would already be there). */
318-
319- /* Takes an arbitrary object which must support the (character, single segment)
320- buffer interface and returns a pointer to a read-only memory location
321- useable as character based input for subsequent processing.
322-
323- Return 0 on success. buffer and buffer_len are only set in case no error
324- occurs. Otherwise, -1 is returned and an exception set. */
325- Py_DEPRECATED (3.0 )
326- PyAPI_FUNC (int ) PyObject_AsCharBuffer (PyObject * obj ,
327- const char * * buffer ,
328- Py_ssize_t * buffer_len );
329-
330- /* Checks whether an arbitrary object supports the (character, single segment)
331- buffer interface.
332-
333- Returns 1 on success, 0 on failure. */
334- Py_DEPRECATED (3.0 ) PyAPI_FUNC (int ) PyObject_CheckReadBuffer (PyObject * obj );
335-
336- /* Same as PyObject_AsCharBuffer() except that this API expects (readable,
337- single segment) buffer interface and returns a pointer to a read-only memory
338- location which can contain arbitrary data.
339-
340- 0 is returned on success. buffer and buffer_len are only set in case no
341- error occurs. Otherwise, -1 is returned and an exception set. */
342- Py_DEPRECATED (3.0 )
343- PyAPI_FUNC (int ) PyObject_AsReadBuffer (PyObject * obj ,
344- const void * * buffer ,
345- Py_ssize_t * buffer_len );
346-
347- /* Takes an arbitrary object which must support the (writable, single segment)
348- buffer interface and returns a pointer to a writable memory location in
349- buffer of size 'buffer_len'.
350-
351- Return 0 on success. buffer and buffer_len are only set in case no error
352- occurs. Otherwise, -1 is returned and an exception set. */
353- Py_DEPRECATED (3.0 )
354- PyAPI_FUNC (int ) PyObject_AsWriteBuffer (PyObject * obj ,
355- void * * buffer ,
356- Py_ssize_t * buffer_len );
357-
358-
359312/* === New Buffer API ============================================ */
360313
361314/* Takes an arbitrary object and returns the result of calling
0 commit comments