]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-141226: Deprecate PEP-456 support for embedders (#141287)
authorBénédikt Tran <10796600+picnixz@users.noreply.github.com>
Sat, 21 Feb 2026 11:42:13 +0000 (12:42 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Feb 2026 11:42:13 +0000 (12:42 +0100)
commit34f4fa8425afed341e44921033b130ba7d099337
tree5422c3719c707194fb6acfdb154e7a39dc4d77c0
parent3a2a686cc45de2fb685ff332b7b914f27f660680
gh-141226: Deprecate PEP-456 support for embedders (#141287)

Deprecate PEP-456 [1] support for providing an external definition
of the string hashing scheme. Removal is scheduled for Python 3.19.

Previously, embedders could define the ``Py_HASH_ALGORITHM`` macro to be
``Py_HASH_EXTERNAL`` [2] to indicate that the hashing scheme was provided
externally but this feature was undocumented, untested and most likely
unused.

[1]: https://peps.python.org/pep-0456/
[2]: https://peps.python.org/pep-0456/#hash-function-selection
Doc/deprecations/c-api-pending-removal-in-3.19.rst [new file with mode: 0644]
Doc/deprecations/index.rst
Doc/whatsnew/3.15.rst
Misc/NEWS.d/next/Core_and_Builtins/2025-11-09-15-44-58.gh-issue-141226.KTb_3F.rst [new file with mode: 0644]
Python/pyhash.c