Skip to content

Conversation

@encukou
Copy link
Member

@encukou encukou commented Oct 15, 2025

PyUnstable_Unicode_GET_CACHED_HASH should return -1 if the hash is not immediately available for any reason. “Using PyPy” can be that reason!

Let's encourage people to use a a fallback for -1, so changing the caching behaviour is easier in the future :)

@vstinner vstinner merged commit e510a7b into python:main Oct 15, 2025
36 checks passed
@vstinner
Copy link
Member

Good idea! I merged your PR, thanks.

@encukou encukou deleted the uncached-hash-minus-one branch October 22, 2025 12:09
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.

2 participants