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 33This changelog summarizes major changes between GraalVM versions of the Python
44language runtime. The main focus is on user-observable behavior of the engine.
55
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+
624## Version 1.0.0 RC5
725
826* 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():
4949 return " Hello from Python!"
5050```
5151
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+
5265#### Python responses to Truffle interop messages
5366
5467###### READ
You can’t perform that action at this time.
0 commit comments