BUG: Stop using PyBytesObject.ob_shash deprecated in Python 3.11.#21321
BUG: Stop using PyBytesObject.ob_shash deprecated in Python 3.11.#21321mattip merged 1 commit intonumpy:mainfrom
Conversation
But doesn't setting the cached value to Simply removing it seems incorrect, e.g. try something like: I suspect that this change will mean we get |
|
I am wondering if Python should not add a custom |
numpy#21317. PyBytesObject.ob_shash was deprecated in Python 3.11.
|
xref python/cpython#91686 to add a custom |
|
The upstream fix to have a |
|
@mattip Thanks for merging 🎊 |
|
Seems pretty harmless to backport, although I suspect it won't matter much as we won't release 1.22.x wheels for 3.11. |
This is unnecessary because a cached hash value should not be computed yet for
obj. MoreoverPyBytesObject.ob_shashwas deprecated in Python 3.11, see python/cpython#91020.Fixes #21317.