]> granicus.if.org Git - python/commitdiff
Reference to an int type, whereas it's a Py_ssize_t as the synopsis states.
authorJeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Sat, 25 Apr 2009 18:57:32 +0000 (18:57 +0000)
committerJeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Sat, 25 Apr 2009 18:57:32 +0000 (18:57 +0000)
Doc/c-api/arg.rst

index db0c832d096bc5ee1cf8a8f7b778dcd9fdd80963..f34e4b449e32c0c518a041b8dcfeface00094b91 100644 (file)
@@ -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``.