Commit 31fb604
committed
ENH: Add compatibility for Python 3.13 hashing with fallbacks for older versions
Py_HashPointer() is not available in Python 3.12.
It was only added to the public C-API in Python 3.13 (see the “What’s New in 3.13” notes)
Release
Status of a pointer-hash helper
≤ 3.12
Only the private, internal function _Py_HashPointer() exists. It is not exported in the limited- or stable-ABI headers and may disappear or change without notice.
3.13+
Py_HashPointer(const void *ptr) becomes a public API entry in <Python.h>.1 parent adffd91 commit 31fb604
2 files changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
368 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
369 | 380 | | |
370 | 381 | | |
371 | 382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
775 | 787 | | |
776 | 788 | | |
777 | 789 | | |
| |||
0 commit comments