Steven G. Johnson

Results 1086 comments of Steven G. Johnson

What is `e.T` that `pyisinstance(e.T, @pyglobalobjptr(:PyExc_AttributeError))` fails to give the expected result?

What does `pyisinstance(e.T, @pyglobalobjptr(:PyExc_AttributeError))` return in those cases?

Oh, I see the problem. `e.T` is not an *instance* of `AttributeError`, it is the type itself. So the correct check is ```jl if PyPtr(e.T) != @pyglobalobjptr(:PyExc_AttributeError) ``` (The goal...

Looking at the `inspect` source code in Python, it seems like we need a couple of things to make this work: - The Julia function-wrapper type should be a subtype...

The workaround is to wrap the Julia function in a Python `lambda` as noted above by @cstjean. We actually do this internally in some cases with `PyCall.jlfun2pyfun`, so you could...

This is the underlying error: ``` ImportError("/home/sethaxen/.julia/juliaup/julia-1.7.3+0~x64/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/sethaxen/.julia/conda/3/lib/python3.9/site-packages/scipy/fft/_pocketfft/pypocketfft.cpython-39-x86_64-linux-gnu.so)") ``` i.e. it is an incompatibility with the C++ standard library — Julia links one version,...

I hope we don't have to do something as complicated as [this code in FFTW.jl](https://github.com/JuliaMath/FFTW.jl/blob/2c20abe7098a2380fa37fe021b3d21fc593059ec/src/fft.jl#L275-L325). See the discussion in https://github.com/JuliaMath/FFTW.jl/issues/141 where we ran into deadlocks during GC because FFTW was...

Hmm, unfortunately I think we may be in the same situation as FFTW, because Python can call back to Julia. That is, the following may occur: 1. We call a...

Can you provide more detail? How is PyCall "rewriting" the environment?

Sure, in fact we originally did that too. However, we changed to determining it at build time to improve load times (#169). Currently, PyCall and PyPlot load significantly faster than...