Skip to content

[3.15] gh-156939: Document that PyUnicodeObject ends with null character (GH-157708) - #159531

Merged
vstinner merged 1 commit into
python:3.15from
miss-islington:backport-4d3b405-3.15
Oct 16, 2026
Merged

vstinner merged 1 commit into
python:3.15from
miss-islington:backport-4d3b405-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Document also that PyUnicode_READ() and PyUnicode_READ_CHAR()
accept reading the trailing null character, and that PyUnicode_GetLength()
doesn't count the trailing null character.
(cherry picked from commit 4d3b405)

Co-authored-by: Victor Stinner vstinner@python.org

…er (pythonGH-157708)

Document also that PyUnicode_READ() and PyUnicode_READ_CHAR()
accept reading the trailing null character, and that PyUnicode_GetLength()
doesn't count the trailing null character.
(cherry picked from commit 4d3b405)

Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app bedevere-app Bot added the type-feature A feature request or enhancement label Oct 16, 2026
@bedevere-app bedevere-app Bot added awaiting review docs Documentation in the Doc dir skip news labels Oct 16, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Oct 16, 2026
@vstinner
vstinner enabled auto-merge (squash) October 16, 2026 13:22
@vstinner vstinner removed the type-feature A feature request or enhancement label Oct 16, 2026
@read-the-docs-community

Copy link
Copy Markdown

@vstinner
vstinner merged commit 5a6369f into python:3.15 Oct 16, 2026
39 of 43 checks passed
@miss-islington
miss-islington deleted the backport-4d3b405-3.15 branch October 16, 2026 13:30
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Oct 16, 2026
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

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants