Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Nov 13, 2025

Replace code accessing directly to PyASCIIObject.hash with PyUnstable_Unicode_GET_CACHED_HASH().

Remove redundant "assert(PyUnicode_Check(op))" from PyUnstable_Unicode_GET_CACHED_HASH(), _PyASCIIObject_CAST() already implements the check.

Replace code accessing directly to PyASCIIObject.hash with
PyUnstable_Unicode_GET_CACHED_HASH().

Remove redundant "assert(PyUnicode_Check(op))" from
PyUnstable_Unicode_GET_CACHED_HASH(), _PyASCIIObject_CAST() already
implements the check.
@vstinner
Copy link
Member Author

cc @encukou

@encukou encukou merged commit 3bacae5 into python:main Nov 14, 2025
48 checks passed
@encukou
Copy link
Member

encukou commented Nov 14, 2025

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants