Closed LilithHafner closed 8 months ago
julia> pyexec(Main, "1+1") ERROR: UndefVarError: `globals_` not defined Stacktrace: [1] _pyeval_args(globals::String, locals::Nothing) @ PythonCall ~/.julia/packages/PythonCall/qTEA1/src/concrete/code.jl:12 [2] pyexec(::Type{Nothing}, code::Module, globals::String, locals::Nothing) @ PythonCall ~/.julia/packages/PythonCall/qTEA1/src/concrete/code.jl:97 [3] pyexec(code::Module, globals::String, locals::Nothing) @ PythonCall ~/.julia/packages/PythonCall/qTEA1/src/concrete/code.jl:103 [4] pyexec(code::Module, globals::String) @ PythonCall ~/.julia/packages/PythonCall/qTEA1/src/concrete/code.jl:103 [5] top-level scope @ REPL[8]:1
I think this should probably be a method error.
https://github.com/JuliaPy/PythonCall.jl/blob/16c23749dcc26e5cfa17b44c823fd1cfffb44af6/src/concrete/code.jl#L9 is missing a throw(...)!
throw(...)
I think this should probably be a method error.