Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make module loading lazy * Catch less in JuliaModule.__getattr__ * Support star import * Special handling for Main module It adds an easier way to set variables in Julia's global namespace: >>> from julia import Main >>> Main.xs = [1, 2, 3] * Deprecate Julia.__getattr__ (and make it lazy) fixes #144 * Initialize Julia in JuliaModuleLoader if required This makes `from julia import <Julia module>` works without the initial setup. Note that a custom setup can still be done by calling `julia.Julia` with appropriate arguments *before* trying to import Julia modules. closes #39, #79 * More interfaces to JuliaMainModule * Document the new API * Properly remove prefix * Fix JuliaModule.__all__; add .__dir__ * Cache original os.environ for tests * Simplify JuliaModule.__try_getattr * Add LegacyJulia to break infinite recursion * Don't import in isamodule Otherwise, trying to access undefined variables such as `julia.Base.__path__` produces a warning from Julia before `JuliaModule.__getattr__` raising `AttributeError`. * Remove core._orig_env; it can be done in test code * Use Enums as example sub-module as Base.REPL was pulled out from Base in Julia 0.7. * More import tests * Remove noop code * Fix wording
- Loading branch information