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...)