mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
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:
parent
e8068edf1e
commit
02c3b5cc30
2 changed files with 14 additions and 3 deletions
|
|
@ -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() */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue