KEMBAR78
gh-89188: Implement PyUnicode_KIND() as a function by vstinner · Pull Request #129412 · python/cpython · GitHub
Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jan 28, 2025

Implement PyUnicode_KIND() and PyUnicode_DATA() as function, in addition to the macros with the same names.

Implement PyUnicode_KIND() and PyUnicode_DATA() as function, in
addition to the macros with the same names.
@vstinner
Copy link
Member Author

cc @indygreg @davidhewitt @encukou

Copy link
Member

@encukou encukou left a comment

Choose a reason for hiding this comment

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

Thank you!

…r3.rst

Co-authored-by: Petr Viktorin <encukou@gmail.com>
@vstinner vstinner enabled auto-merge (squash) January 30, 2025 11:05
@vstinner vstinner merged commit a810cb8 into python:main Jan 30, 2025
42 checks passed
@vstinner vstinner deleted the unicode_kind branch January 30, 2025 11:27
@davidhewitt
Copy link
Contributor

Super, thank you!

srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Feb 7, 2025
Implement PyUnicode_KIND() and PyUnicode_DATA() as function, in
addition to the macros with the same names. The macros rely on C bit
fields which have compiler-specific layout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants