Mention changes to the buffer interface.

This commit is contained in:
Martin v. Löwis 2006-02-12 09:36:52 +00:00
parent 55dc576c22
commit 16e247c592
1 changed files with 5 additions and 2 deletions

View File

@ -58,7 +58,8 @@ standard distribution. In particular, PyObject_VAR_HEAD is changed to
use Py_ssize_t, affecting all extension modules that use that macro.
All occurrences of index and length parameters and results are changed
to use Py_ssize_t, including the sequence slots in type objects.
to use Py_ssize_t, including the sequence slots in type objects, and
the buffer interface.
New conversion functions PyInt_FromSsize_t and PyInt_AsSsize_t, are
introduced. PyInt_FromSsize_t will transparently return a long int
@ -66,7 +67,9 @@ object if the value exceeds the LONG_MAX; PyInt_AsSsize_t will
transparently process long int objects.
New function pointer typedefs ssizeargfunc, ssizessizeargfunc,
ssizeobjargproc, and ssizessizeobjargproc are introduced.
ssizeobjargproc, and ssizessizeobjargproc are introduced. The
buffer interface function types are now called readbufferproc,
writebufferproc, segcountproc, and charbufferproc.
A new conversion code 'n' is introduced for PyArg_ParseTuple
and Py_BuildValue, which operates on Py_ssize_t.