From 2b7705f9e0da9e360c7db89817bd404bf3dbe58c Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Wed, 13 Apr 2022 14:27:32 -0400 Subject: [PATCH] define 2-arg Base.hash --- src/Py.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Py.jl b/src/Py.jl index 2cf77554..e61c5d2a 100644 --- a/src/Py.jl +++ b/src/Py.jl @@ -366,7 +366,7 @@ end Base.in(v, x::Py) = pycontains(x, v) -Base.hash(x::Py) = reinterpret(UInt, Int(pyhash(x))) +Base.hash(x::Py, h::UInt) = reinterpret(UInt, Int(pyhash(x))) - 3h (f::Py)(args...; kwargs...) = pycall(f, args...; kwargs...)