mirror of
https://github.com/python/cpython.git
synced 2026-06-18 15:42:21 +00:00
[3.14] gh-117291: Explain usage of null bytes in Array(c_char).value (GH-117292) (GH-150650)
(cherry picked from commit 73d8e9a47c)
Co-authored-by: Patrick Rauscher <prauscher@prauscher.de>
This commit is contained in:
parent
1b85d25604
commit
1190ee8dc7
1 changed files with 4 additions and 1 deletions
|
|
@ -1713,7 +1713,10 @@ inherited by child processes.
|
|||
Note that *lock* is a keyword only argument.
|
||||
|
||||
Note that an array of :data:`ctypes.c_char` has *value* and *raw*
|
||||
attributes which allow one to use it to store and retrieve strings.
|
||||
attributes which can both be used to store and retrieve byte strings.
|
||||
While *raw* allows interaction with a :class:`bytes` object the full size of
|
||||
the array, reading *value* will terminate after a null byte, like most
|
||||
programming languages handle strings.
|
||||
|
||||
|
||||
The :mod:`!multiprocessing.sharedctypes` module
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue