Skip to content

Commit aa56acc

Browse files
Koladata Teamcopybara-github
authored andcommitted
Update hashing functions for compatibility with Python 3.14+.
PiperOrigin-RevId: 870793752 Change-Id: I517c26ea37fdd329038bd8b0025a9762080d19a7
1 parent e744225 commit aa56acc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

py/koladata/types/data_slice.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,12 @@ PyObject* PyDataSlice_richcompare_not_implemented(PyObject* self,
12701270
return nullptr;
12711271
}
12721272

1273+
#if PY_VERSION_HEX >= 0x030E0000
1274+
#define _Py_HashBytes Py_HashBuffer
1275+
#else
12731276
extern "C" Py_hash_t _Py_HashBytes(const void* src, Py_ssize_t len);
1277+
#endif
1278+
12741279
extern "C" Py_hash_t _Py_HashDouble(PyObject* self, double value);
12751280

12761281
Py_hash_t PyDataSlice_hash(PyObject* self) {

0 commit comments

Comments
 (0)