Mention changes to the buffer interface.
This commit is contained in:
parent
55dc576c22
commit
16e247c592
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue