Chapter 3. Jython Statements
In the previous chapter, we looked at the basic building blocks of Jython scripts—that is, the data types and structures used to represent information. In this chapter, we expand on these concepts and explore the next programming construct: statements.
Expression Statements
Expression statements are used to compute values and to invoke functions. They are frequently used in an interactive wsadmin
session, where the result (if it is not None
) is displayed. This can be seen in Listing 3.1 (lines 12–13). When wsadmin
is not used in an interactive mode, the results of expression statements are discarded, as also shown in Listing 3.1 (line 8).
The print
Statement ...
Get WebSphere Application Server Administration Using Jython 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.