Foreword;Preface; Audience Expectations; Organization; Further Reading; Conventions Used in This Book; How to Contact Us; Samuele Pedroni's Acknowledgments; Noel Rappin's Acknowledgments;Chapter 1: Introduction to Jython; 1.1 Jython Requirements; 1.2 Welcome to Jython; 1.3 What's Jython Good For?; 1.4 The Benefits of Jython; 1.5 The Speed Question; 1.6 The Rest of the Book;Chapter 2: Jython Basics; 2.1 Running Jython; 2.
2 Basic Types; 2.3 Operators; 2.4 Numeric Types; 2.5 Sequences: Lists and Tuples; 2.6 Strings; 2.7 Mappings and Dictionaries; 2.8 Jython Files;Chapter 3: Jython Control Flow; 3.1 Statements and Expressions; 3.
2 Assignment; 3.3 Printing; 3.4 Blocks; 3.5 Conditional Logic; 3.6 Loops; 3.7 List Comprehensions; 3.8 Exceptions; 3.9 Evaluating Code Dynamically;Chapter 4: Modules and Functions; 4.
1 Modules; 4.2 Functions; 4.3 Parameter Passing with Style; 4.4 Import Statements and Packages;Chapter 5: Object-Oriented Jython; 5.1 Creating Classes; 5.2 Methods; 5.3 Classes, Instances, and Access Control; 5.4 Inheritance; 5.
5 Special Methods;Chapter 6: Using Java from Jython; 6.1 Basic Object Usage; 6.2 Automatic Type Conversion; 6.3 Java Arrays and the jarray Module; 6.4 Java-to-Python Types: Automatic Conversion; 6.5 Collection Wrappers; 6.6 Avoiding Name Collisions;Chapter 7: Inheriting from Java; 7.1 Basic Mechanics; 7.
2 Java Interoperation and Overriding; 7.3 Calling Super Methods and Constructors;Chapter 8: Reflection and JavaBeans; 8.1 Bean-Based Reflection; 8.2 Python-Based Reflection;Chapter 9: Using Swing; 9.1 Java Versus Jython; 9.2 A Calculator; 9.3 An HTML Browser; 9.4 An HTML Source Browser;Chapter 10: Using Java Libraries; 10.
1 JDBC and the Python Database API; 10.2 Servlets and PyServlet; 10.3 Jython and XML;Chapter 11: Jython Standard Library; 11.1 Using Python Modules; 11.2 System and File Modules; 11.3 Regular Expressions; 11.4 Serialization and Pickling; 11.5 Unit Testing with PyUnit;Chapter 12: Embedding Jython Inside Java; 12.
1 Setting Up an Interpreter; 12.2 Executing Code; 12.3 Accessing the Interpreter Namespace; 12.4 Using PyObjects; 12.5 PyObject Subclasses; 12.6 Catching Exceptions; 12.7 Embedding Examples;Chapter 13: Compiling Jython; 13.1 Why Compile?; 13.
2 The Compiler in Action; 13.3 Packaging in Java Archives; 13.4 Using Jython in Java; 13.5 A Simple Applet;Installing Jython;Jython Options and Registry; Jython Options; Jython Compiler Options; The Jython Registry;Jython Exceptions;Jython and CPython Differences; Jython Extensions; Major Design Differences; Minor Design Differences; Differences Due to Java Details; Differences Due to Java Limitations; Minor Issues; Java Objects Versus Python Objects;Java-to-Python Quick Reference; Basic Data Types; Advanced Data Types; Logical Operators; Arithmetic Operators; Control Statements; Definition Statements; String Methods; List Methods; Dictionary Functions;Colophon;.