Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d53dfa3

Browse files
committed
Issue #10840: make it explicit that "s*" and friends provide contiguous memory.
1 parent 7beae8a commit d53dfa3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Doc/c-api/arg.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ variable(s) whose address should be passed.
3030
Strings and buffers
3131
-------------------
3232

33-
These formats do not expect you to provide raw storage for the returned string
34-
or bytes. Also, you won't have to release any memory yourself, except with
35-
the ``es``, ``es#``, ``et`` and ``et#`` formats.
33+
These formats allow to access an object as a contiguous chunk of memory.
34+
You don't have to provide raw storage for the returned unicode or bytes
35+
area. Also, you won't have to release any memory yourself, except with the
36+
``es``, ``es#``, ``et`` and ``et#`` formats.
3637

3738
However, when a :c:type:`Py_buffer` structure gets filled, the underlying
3839
buffer is locked so that the caller can subsequently use the buffer even

0 commit comments

Comments
 (0)