Skip to content

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

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

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

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