Skip to content

Commit 207ac8e

Browse files
committed
import Base.hasproperty in Julia 1.2
1 parent 4b5fc97 commit 207ac8e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/PyCall.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ import Base: size, ndims, similar, copy, getindex, setindex!, stride,
2020
pushfirst!, popfirst!, firstindex, lastindex,
2121
getproperty, setproperty!, propertynames
2222

23+
if isdefined(Base, :hasproperty) # Julia 1.2
24+
import Base: hasproperty
25+
end
26+
2327
# Python C API is not interrupt-safe. In principle, we should
2428
# use sigatomic for every ccall to the Python library, but this
2529
# should really be fixed in Julia (#2622). However, we will

0 commit comments

Comments
 (0)