[Python-checkins] cpython (2.7): Issue #13302: backport part of 3ed28f28466f

sandro.tosi python-checkins at python.org
Sun Jan 1 23:43:00 CET 2012


http://hg.python.org/cpython/rev/b2b7104691c9
changeset: 74230:b2b7104691c9
branch: 2.7
parent: 74221:9aebb4d07ddf
user: Sandro Tosi <sandro.tosi at gmail.com>
date: Sun Jan 01 23:41:44 2012 +0100
summary:
 Issue #13302: backport part of 3ed28f28466f
files:
 Doc/c-api/arg.rst | 5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Doc/c-api/arg.rst b/Doc/c-api/arg.rst
--- a/Doc/c-api/arg.rst
+++ b/Doc/c-api/arg.rst
@@ -24,6 +24,11 @@
 that matches the format unit; and the entry in [square] brackets is the type
 of the C variable(s) whose address should be passed.
 
+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.
+
 ``s`` (string or Unicode) [const char \*]
 Convert a Python string or Unicode object to a C pointer to a character
 string. You must not provide storage for the string itself; a pointer to
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /