File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 3
3
This changelog summarizes major changes between GraalVM versions of the Python
4
4
language runtime. The main focus is on user-observable behavior of the engine.
5
5
6
+ ## Version 1.0.0 RC6
7
+
8
+ * Support regular expression patterns built from bytes by using CPython's sre module as a fallback engine to our own
9
+ * Support LLVM 5+ for C extension modules
10
+ * Introduce native sequence storage so that e.g. Python bytes exposed to C can be mutated
11
+ * Introduce lazy string concatenation to significantly speed up benchmarks where strings are concatenated repeatedly
12
+ * C-API improvements to support more scikit-learn code
13
+ * Fix our distinction between builtin functions, functions, and methods to make the classes for builtin functions equivalent to CPython
14
+ * Improve set, frozenset, and dict support
15
+ * Attach Python exceptions as cause to ImportErrors raised for C extension modules
16
+ * Update standard library to CPython 3.6.5
17
+ * Support more code object attributes
18
+ * Support constant type ids for objects that are interned on CPython
19
+ * Add collections.deque
20
+ * Document how to contribute
21
+ * Improve efficiency of generators
22
+ * Enable re-use of ASTs in multiple Contexts in the same Engine
23
+
6
24
## Version 1.0.0 RC5
7
25
8
26
* Generator expressions now properly evaluate their first iterator in the definition scope at definition time
Original file line number Diff line number Diff line change @@ -49,6 +49,19 @@ def python_method():
49
49
return " Hello from Python!"
50
50
```
51
51
52
+ Finally, to interoperate with Java (only when running on the JVM), you can use
53
+ the ` java ` module:
54
+ ``` python
55
+ import java
56
+ BigInteger = java.type(" java.math.BigInteger" )
57
+ myBigInt = BigInteger(42 )
58
+ myBigInt.shiftLeft(128 ) # public Java methods can just be called
59
+ myBigInt[" not" ]() # Java method names that are keywords in
60
+ # Python can be accessed using "[]"
61
+ byteArray = myBigInt.toByteArray()
62
+ print (list (byteArray)) # Java arrays can act like Python lists
63
+ ```
64
+
52
65
#### Python responses to Truffle interop messages
53
66
54
67
###### READ
You can’t perform that action at this time.
0 commit comments