Skip to content

BUG: Stop using PyBytesObject.ob_shash deprecated in Python 3.11.#21447

Merged
charris merged 1 commit intonumpy:maintenance/1.22.xfrom
charris:backport-21321
May 5, 2022
Merged

BUG: Stop using PyBytesObject.ob_shash deprecated in Python 3.11.#21447
charris merged 1 commit intonumpy:maintenance/1.22.xfrom
charris:backport-21321

Conversation

@charris
Copy link
Copy Markdown
Member

@charris charris commented May 5, 2022

Backport of #21321.

This is unnecessary because a cached hash value should not be computed yet for obj. Moreover PyBytesObject.ob_shash was deprecated in Python 3.11, see python/cpython#91020.

Fixes #21317.

@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels May 5, 2022
@charris charris added this to the 1.22.4 release milestone May 5, 2022
@charris charris merged commit 070be22 into numpy:maintenance/1.22.x May 5, 2022
@charris charris deleted the backport-21321 branch May 5, 2022 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

00 - Bug 08 - Backport Used to tag backport PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants