We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 662e7ae commit f898a2cCopy full SHA for f898a2c
src/Compat/serialization.jl
@@ -6,7 +6,7 @@ function serialize_py(s, x::Py)
6
if pyisnull(x)
7
serialize(s, nothing)
8
else
9
- b = pyimport("pickle").dumps(x)
+ b = pyimport(get(ENV, "JULIA_PYTHONCALL_PICKLE", "pickle")).dumps(x)
10
serialize(s, pybytes_asvector(b))
11
end
12
@@ -16,7 +16,7 @@ function deserialize_py(s)
16
if v === nothing
17
pynew()
18
19
- pyimport("pickle").loads(pybytes(v))
+ pyimport(get(ENV, "JULIA_PYTHONCALL_PICKLE", "pickle")).loads(pybytes(v))
20
21
22
0 commit comments