We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b083173 commit 64dd34cCopy full SHA for 64dd34c
src/scyjava/_jvm.py
@@ -25,16 +25,16 @@
25
_shutdown_callbacks = []
26
27
28
-def jvm_version() -> str:
+def jvm_version() -> tuple[int, ...]:
29
"""
30
Gets the version of the JVM as a tuple, with each dot-separated digit
31
as one element. Characters in the version string beyond only numbers
32
and dots are ignored, in line with the java.version system property.
33
34
Examples:
35
- * OpenJDK 17.0.1 -> [17, 0, 1]
36
- * OpenJDK 11.0.9.1-internal -> [11, 0, 9, 1]
37
- * OpenJDK 1.8.0_312 -> [1, 8, 0]
+ * OpenJDK 17.0.1 -> (17, 0, 1)
+ * OpenJDK 11.0.9.1-internal -> (11, 0, 9, 1)
+ * OpenJDK 1.8.0_312 -> (1, 8, 0)
38
39
If the JVM is already started, this function returns the equivalent of:
40
jimport('java.lang.System')
0 commit comments