[Python-checkins] r67456 - python/branches/release26-maint/Doc/c-api/arg.rst
christian.heimes
python-checkins at python.org
Sun Nov 30 22:12:34 CET 2008
Author: christian.heimes
Date: Sun Nov 30 22:12:34 2008
New Revision: 67456
Log:
w# requires Py_ssize_t, not int.
This documentation bug has cost me several hours of debugging :/
Modified:
python/branches/release26-maint/Doc/c-api/arg.rst
Modified: python/branches/release26-maint/Doc/c-api/arg.rst
==============================================================================
--- python/branches/release26-maint/Doc/c-api/arg.rst (original)
+++ python/branches/release26-maint/Doc/c-api/arg.rst Sun Nov 30 22:12:34 2008
@@ -251,7 +251,7 @@
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
More information about the Python-checkins
mailing list