summaryrefslogtreecommitdiff
path: root/Doc/extending
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/extending.rst7
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst
index 96d5654d89..851e99f6d6 100644
--- a/Doc/extending/extending.rst
+++ b/Doc/extending/extending.rst
@@ -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() */