June 2002
Beginner to intermediate
640 pages
14h 24m
English
In this chapter, we covered how to integrate Java and Python. Essentially, Jython makes this integration easy and, most of the time, transparent. The mappings from Java types to Python types for passing arguments and returning values from Java methods are straightforward.
Jython has added the jarray module, which allows the creation of the built-in array type that maps to Java arrays. jarray allows you to create both empty arrays and arrays initialized with the contents of a sequence. A Java array is like a homogeneously typed Python sequence with a fixed length, so you can use a Python sequence operation on it.
Read now
Unlock full access