Skip to content

gh-117291: Explain usage of nullbytes in Array(c_char).value#117292

Merged
serhiy-storchaka merged 3 commits into
python:mainfrom
prauscher:gh-117291
May 31, 2026
Merged

gh-117291: Explain usage of nullbytes in Array(c_char).value#117292
serhiy-storchaka merged 3 commits into
python:mainfrom
prauscher:gh-117291

Conversation

@prauscher
Copy link
Copy Markdown
Contributor

@prauscher prauscher commented Mar 27, 2024

Fixes #117291

Currently, the docs only briefly mention value and raw attributes of a Array(c_char). This PR extends the note to inform users that reading a value might give a different value than was set beforehand iff null-bytes are part of this value.


📚 Documentation preview 📚: https://cpython-previews--117292.org.readthedocs.build/

@prauscher prauscher requested a review from gpshead as a code owner March 27, 2024 15:23
@ghost
Copy link
Copy Markdown

ghost commented Mar 27, 2024

All commit authors signed the Contributor License Agreement.
CLA signed

@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 16, 2026
Comment thread Doc/library/multiprocessing.rst Outdated
Comment thread Doc/library/multiprocessing.rst Outdated
Comment thread Doc/library/multiprocessing.rst Outdated
@read-the-docs-community
Copy link
Copy Markdown

read-the-docs-community Bot commented May 30, 2026

Documentation build overview

📚 cpython-previews | 🛠️ Build #32918994 | 📁 Comparing 285797d against main (61ec3c2)

  🔍 Preview build  

1 file changed
± library/multiprocessing.html

Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 👍

@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels May 31, 2026
@serhiy-storchaka serhiy-storchaka merged commit 73d8e9a into python:main May 31, 2026
40 checks passed
@miss-islington-app
Copy link
Copy Markdown

Thanks @prauscher for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs May 31, 2026
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 31, 2026

GH-150649 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label May 31, 2026
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 31, 2026

GH-150650 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label May 31, 2026
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 31, 2026

GH-150651 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label May 31, 2026
serhiy-storchaka pushed a commit that referenced this pull request May 31, 2026
…H-117292) (GH-150651)

(cherry picked from commit 73d8e9a)

Co-authored-by: Patrick Rauscher <prauscher@prauscher.de>
serhiy-storchaka pushed a commit that referenced this pull request May 31, 2026
…H-117292) (GH-150649)

(cherry picked from commit 73d8e9a)

Co-authored-by: Patrick Rauscher <prauscher@prauscher.de>
serhiy-storchaka pushed a commit that referenced this pull request May 31, 2026
…H-117292) (GH-150650)

(cherry picked from commit 73d8e9a)

Co-authored-by: Patrick Rauscher <prauscher@prauscher.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news stale Stale PR or inactive for long period of time.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

multiprocessing: Add note that Array(c_char, 128).value is null-terminated

2 participants