Document PY_SSIZE_T_CLEAN use and behavior for PyArg_ParseTuple and

mention that it will become the default in a future python version.
This commit is contained in:
Gregory P. Smith 2008-11-23 23:49:16 +00:00
parent e8068edf1e
commit 02c3b5cc30
2 changed files with 14 additions and 3 deletions

View file

@ -587,11 +587,16 @@ Note that any Python object references which are provided to the caller are
Some example calls::
#define PY_SSIZE_T_CLEAN /* Make "s#" use Py_ssize_t rather than int. */
#include <Python.h>
::
int ok;
int i, j;
long k, l;
const char *s;
int size;
Py_ssize_t size;
ok = PyArg_ParseTuple(args, ""); /* No arguments */
/* Python call: f() */