JuliaPy / PyCall.jl

Package to call Python functions from the Julia language
MIT License
1.46k stars 187 forks source link

Document Thread Safety #966

Open JBlaschke opened 2 years ago

JBlaschke commented 2 years ago

Hi,

we need to document PyCall's thread safety (I assume its thread safe and can be called within a Threads.@threads for block).

Also it's worth noting that python PYTHONFAULTHANDLER environment variable can cause a crash when it intercepts signals from the Julia garbage collector. So we should document that PYTHONFAULTHANDLER=0 should be set. Cf. https://discourse.julialang.org/t/help-with-pycall-related-segfault/55998

Cheers, Johannes