mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #10840: make it explicit that "s*" and friends provide contiguous memory.
This commit is contained in:
parent
7beae8a0d5
commit
d53dfa3fb1
1 changed files with 4 additions and 3 deletions
|
@ -30,9 +30,10 @@ variable(s) whose address should be passed.
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue