https://github.com/python/cpython/commit/1190ee8dc7f6c12bd6e6ff8be0e61d7df4ea5bfe
commit: 1190ee8dc7f6c12bd6e6ff8be0e61d7df4ea5bfe
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-05-31T07:28:47Z
summary:

[3.14] gh-117291: Explain usage of null bytes in Array(c_char).value 
(GH-117292) (GH-150650)

(cherry picked from commit 73d8e9a47cc13ce1b9b1bdfdeaa958639b144f55)

Co-authored-by: Patrick Rauscher <[email protected]>

files:
M Doc/library/multiprocessing.rst

diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index d3350217be80a6..b4d5eca4e91a8e 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to