summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-11-30 21:12:34 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-11-30 21:12:34 (GMT)
commit7c3f8701c48748ca52832aa7990c37831ad42492 (patch)
tree70d791cbb0791e16854c4692dd24ce3baf7cea96 /Doc
parent2b0b0699af833121e3782d5c4d76ad6501f803fc (diff)
downloadcpython-7c3f8701c48748ca52832aa7990c37831ad42492.zip
cpython-7c3f8701c48748ca52832aa7990c37831ad42492.tar.gz
cpython-7c3f8701c48748ca52832aa7990c37831ad42492.tar.bz2
w# requires Py_ssize_t, not int.
This documentation bug has cost me several hours of debugging :/
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/arg.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst
index 2525438..120c281 100644
--- a/Doc/c-api/arg.rst
+++ b/Doc/c-api/arg.rst
@@ -251,7 +251,7 @@ variable(s) whose address should be passed.
or use ``w#`` instead. Only single-segment buffer objects are accepted;
:exc:`TypeError` is raised for all others.
-``w#`` (read-write character buffer) [char \*, int]
+``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