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
I've made a case in the past that the imports system is nice, but unfortunately a bit crippled by the need to have runtime requirements (like a running JVM). What I would love is if we had something more declarative and lazy, such that:
from java_packages.java.lang import String # (java_packages name to be discussed)
Will work just fine without the JVM running, but String("foo") would raise a JVMNotRunning exception if the code is run without having previously started the JVM.
The text was updated successfully, but these errors were encountered:
pelson
changed the title
Mail JImports docs doesn't mention how to enable the import behaviour
Main JImports docs doesn't mention how to enable the import behaviour
Oct 31, 2022
The docs in https://jpype.readthedocs.io/en/latest/imports.html never actually tell you how to start the
JImport
mechanism. As a result, that page only has limited usefulness. Ironically, the place when it is mentioned https://jpype.readthedocs.io/en/latest/api.html?highlight=import#jpype-imports-module links to the page with less detail.(as an asside)
I've made a case in the past that the imports system is nice, but unfortunately a bit crippled by the need to have runtime requirements (like a running JVM). What I would love is if we had something more declarative and lazy, such that:
Will work just fine without the JVM running, but
String("foo")
would raise aJVMNotRunning
exception if the code is run without having previously started the JVM.The text was updated successfully, but these errors were encountered: