Author: Armin Rigo <[email protected]> Branch: Changeset: r1094:9929fb64a1bc Date: 2012-11-30 15:59 -0800 http://bitbucket.org/cffi/cffi/changeset/9929fb64a1bc/
Log: Mention ffi.buffer() in the ffi.string() doc. diff --git a/doc/source/index.rst b/doc/source/index.rst --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -1010,8 +1010,9 @@ - If 'cdata' is a pointer or array of characters or bytes, returns the null-terminated string. The returned string extends until the first null character, or at most 'maxlen' characters. If 'cdata' is an - array then 'maxlen' defaults to its length. *Python 3:* this is - always a ``bytes``, not a ``str``. + array then 'maxlen' defaults to its length. See ``ffi.buffer()`` below + for a way to continue past the first null character. *Python 3:* this + returns a ``bytes``, not a ``str``. - If 'cdata' is a pointer or array of wchar_t, returns a unicode string following the same rules. _______________________________________________ pypy-commit mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-commit
