File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1+ Define ` _PyDict_Contains_KnownHash() ` FFI for CPython 3.10 or later.
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ extern "C" {
4242 hash : * mut crate :: Py_hash_t ,
4343 ) -> c_int ;
4444 // skipped PyDict_GET_SIZE
45- // skipped _PyDict_Contains_KnownHash
4645 // skipped _PyDict_ContainsId
4746 pub fn _PyDict_NewPresized ( minused : Py_ssize_t ) -> * mut PyObject ;
4847 // skipped _PyDict_MaybeUntrack
@@ -63,6 +62,14 @@ extern "C" {
6362 // skipped _PyDictViewObject
6463 // skipped _PyDictView_New
6564 // skipped _PyDictView_Intersect
65+
66+ #[ cfg( Py_3_10 ) ]
67+ pub fn _PyDict_Contains_KnownHash (
68+ op : * mut PyObject ,
69+ key : * mut PyObject ,
70+ hash : crate :: Py_hash_t ,
71+ ) -> c_int ;
72+
6673 #[ cfg( not( Py_3_10 ) ) ]
6774 pub fn _PyDict_Contains ( mp : * mut PyObject , key : * mut PyObject , hash : Py_ssize_t ) -> c_int ;
6875}
You can’t perform that action at this time.
0 commit comments