Appendix A. Jython Statements and Built-In Functions Quick Reference

Jython Statements and Built-In Functions Quick Reference

This appendix includes two alphabetically sorted, quick-reference tables. Table A.1 shows built-in functions, and Table A.2 shows Jython statements.

Table A.1. Built-In Functions Quick Reference

Function

Description

abs

Returns the absolute value of the number x.

Syntax:

abs(number)

Example:

>>> abs(-5.43)
5.43

apply

Calls an object, the object supplied as the first argument to the apply function. This can be a function, class, or any callable object. If the optional second argument is supplied, it must be a tuple and is used as ordered arguments when the object is called. The ...

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.