[Python-checkins] r87784 - python/branches/py3k/Doc/c-api/arg.rst
antoine.pitrou
python-checkins at python.org
Thu Jan 6 08:16:32 CET 2011
Author: antoine.pitrou
Date: Thu Jan 6 08:16:31 2011
New Revision: 87784
Log:
Issue #10840: make it explicit that "s*" and friends provide contiguous memory.
Modified:
python/branches/py3k/Doc/c-api/arg.rst
Modified: python/branches/py3k/Doc/c-api/arg.rst
==============================================================================
--- python/branches/py3k/Doc/c-api/arg.rst (original)
+++ python/branches/py3k/Doc/c-api/arg.rst Thu Jan 6 08:16:31 2011
@@ -30,9 +30,10 @@
Strings and buffers
-------------------
-These formats do not expect you to provide raw storage for the returned string
-or bytes. Also, you won't have to release any memory yourself, except with
-the ``es``, ``es#``, ``et`` and ``et#`` formats.
+These formats allow to access an object as a contiguous chunk of memory.
+You don't have to provide raw storage for the returned unicode or bytes
+area. Also, you won't have to release any memory yourself, except with the
+``es``, ``es#``, ``et`` and ``et#`` formats.
However, when a :c:type:`Py_buffer` structure gets filled, the underlying
buffer is locked so that the caller can subsequently use the buffer even
More information about the Python-checkins
mailing list