]> granicus.if.org Git - python/commitdiff
w# requires Py_ssize_t, not int.
authorChristian Heimes <christian@cheimes.de>
Sun, 30 Nov 2008 21:12:34 +0000 (21:12 +0000)
committerChristian Heimes <christian@cheimes.de>
Sun, 30 Nov 2008 21:12:34 +0000 (21:12 +0000)
This documentation bug has cost me several hours of debugging :/

Doc/c-api/arg.rst

index 25254382091bf0d996a9cb6065143060b1c6b5f4..120c2810848fb8e4954313422c3564185516ce9b 100644 (file)
@@ -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