Chapter 2. Operators, Types, and Built-In Functions

Operators, Types, and Built-In Functions

This chapter explains Jython’s identifiers, data objects, operators and builtin functions. Nearly all items discussed in this chapter are available without user-supplied syntax—just like Java programmers get the classes in the java.lang package without any import statement. The exception is Java objects. Jython uses Java objects within Jython’s syntax, but interacting with Java objects requires an import statement. Before beginning with objects, it is important to know which names (identifiers) are legal to bind objects to—; therefore, this chapter begins with the definition of legal Jython identifiers. ...

Get Jython for Java Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.