You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although it is possible to access any built-in Julia function, it is not possible to access any of the Julia built-in Julia types. For example, the script
I did not see any information about this issue in the documentation and in the test codes of pyjulia. I wonder if it is possible to access these built-in Julia types in python side. (See JuliaPy/PyCall.jl#460). Any suggestions?
Honestly, the whole current approach seems less than ideal to me… I feel like it should load symbols in the module(s) lazily, rather than adding them all as attributes when the module is loaded. This would improve load times and also be more flexible about non-function symbols (e.g. mutable globals would work, because the conversion would occur each time they are accessed).
Activity
stevengj commentedon Jan 18, 2018
Yes, it looks like it currently only exports the functions in Base (https://github.com/JuliaPy/pyjulia/blob/master/julia/core.py#L386), and similarly for other modules.
Honestly, the whole current approach seems less than ideal to me… I feel like it should load symbols in the module(s) lazily, rather than adding them all as attributes when the module is loaded. This would improve load times and also be more flexible about non-function symbols (e.g. mutable globals would work, because the conversion would occur each time they are accessed).
For now, you can presumably do
jul.eval("Any")?zekeriyasari commentedon Jan 18, 2018
jul.eval("Any")works fine. Thank you for all.Deprecate Julia.__getattr__ (and make it lazy)
Deprecate Julia.__getattr__ (and make it lazy)
Deprecate Julia.__getattr__ (and make it lazy)
Deprecate Julia.__getattr__ (and make it lazy)
Deprecate Julia.__getattr__ (and make it lazy)
Make module loading lazy (JuliaPy#162)