summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorJeroen Ruigrok van der Werven <asmodai@in-nomine.org>2009-04-25 18:57:32 (GMT)
committerJeroen Ruigrok van der Werven <asmodai@in-nomine.org>2009-04-25 18:57:32 (GMT)
commitc2aa7b8a0ac0e4acebd3c03ec846e62f9bc18876 (patch)
treedc8c7fc23c7eb9ced4133d9eb5b3a3244229885e /Doc/c-api
parent28c81e0bb57503ee9b8c28efd537e99147420662 (diff)
downloadcpython-c2aa7b8a0ac0e4acebd3c03ec846e62f9bc18876.zip
cpython-c2aa7b8a0ac0e4acebd3c03ec846e62f9bc18876.tar.gz
cpython-c2aa7b8a0ac0e4acebd3c03ec846e62f9bc18876.tar.bz2
Reference to an int type, whereas it's a Py_ssize_t as the synopsis states.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/arg.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst
index db0c832..f34e4b4 100644
--- a/Doc/c-api/arg.rst
+++ b/Doc/c-api/arg.rst
@@ -262,9 +262,9 @@ of the C variable(s) whose address should be passed.
``w#`` (read-write character buffer) [char \*, Py_ssize_t]
Like ``s#``, but accepts any object which implements the read-write buffer
interface. The :ctype:`char \*` variable is set to point to the first byte
- of the buffer, and the :ctype:`int` is set to the length of the buffer.
- Only single-segment buffer objects are accepted; :exc:`TypeError` is raised
- for all others.
+ of the buffer, and the :ctype:`Py_ssize_t` is set to the length of the
+ buffer. Only single-segment buffer objects are accepted; :exc:`TypeError`
+ is raised for all others.
``w*`` (read-write byte-oriented buffer) [Py_buffer \*]
This is to ``w`` what ``s*`` is to ``s``.