Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-89188: Implement PyUnicode_KIND() as a function #129412

Merged
merged 3 commits into from
Jan 30, 2025

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!

@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