Books & Videos

Table of Contents

  1. Chapter 1 Introduction to Jython

    1. Jython Requirements

    2. Welcome to Jython

    3. What’s Jython Good For?

    4. The Benefits of Jython

    5. The Speed Question

    6. The Rest of the Book

  2. Chapter 2 Jython Basics

    1. Running Jython

    2. Basic Types

    3. Operators

    4. Numeric Types

    5. Sequences: Lists and Tuples

    6. Strings

    7. Mappings and Dictionaries

    8. Jython Files

  3. Chapter 3 Jython Control Flow

    1. Statements and Expressions

    2. Assignment

    3. Printing

    4. Blocks

    5. Conditional Logic

    6. Loops

    7. List Comprehensions

    8. Exceptions

    9. Evaluating Code Dynamically

  4. Chapter 4 Modules and Functions

    1. Modules

    2. Functions

    3. Parameter Passing with Style

    4. Import Statements and Packages

  5. Chapter 5 Object-Oriented Jython

    1. Creating Classes

    2. Methods

    3. Classes, Instances, and Access Control

    4. Inheritance

    5. Special Methods

  6. Chapter 6 Using Java from Jython

    1. Basic Object Usage

    2. Automatic Type Conversion

    3. Java Arrays and the jarray Module

    4. Java-to-Python Types: Automatic Conversion

    5. Collection Wrappers

    6. Avoiding Name Collisions

  7. Chapter 7 Inheriting from Java

    1. Basic Mechanics

    2. Java Interoperation and Overriding

    3. Calling Super Methods and Constructors

  8. Chapter 8 Reflection and JavaBeans

    1. Bean-Based Reflection

    2. Python-Based Reflection

  9. Chapter 9 Using Swing

    1. Java Versus Jython

    2. A Calculator

    3. An HTML Browser

    4. An HTML Source Browser

  10. Chapter 10 Using Java Libraries

    1. JDBC and the Python Database API

    2. Servlets and PyServlet

    3. Jython and XML

  11. Chapter 11 Jython Standard Library

    1. Using Python Modules

    2. System and File Modules

    3. Regular Expressions

    4. Serialization and Pickling

    5. Unit Testing with PyUnit

  12. Chapter 12 Embedding Jython Inside Java

    1. Setting Up an Interpreter

    2. Executing Code

    3. Accessing the Interpreter Namespace

    4. Using PyObjects

    5. PyObject Subclasses

    6. Catching Exceptions

    7. Embedding Examples

  13. Chapter 13 Compiling Jython

    1. Why Compile?

    2. The Compiler in Action

    3. Packaging in Java Archives

    4. Using Jython in Java

    5. A Simple Applet

  1. Appendix Installing Jython

  2. Appendix Jython Options and Registry

    1. Jython Options

    2. Jython Compiler Options

    3. The Jython Registry

  3. Appendix Jython Exceptions

  4. Appendix Jython and CPython Differences

    1. Jython Extensions

    2. Major Design Differences

    3. Minor Design Differences

    4. Differences Due to Java Details

    5. Differences Due to Java Limitations

    6. Minor Issues

    7. Java Objects Versus Python Objects

  5. Appendix Java-to-Python Quick Reference

    1. Basic Data Types

    2. Advanced Data Types

    3. Logical Operators

    4. Arithmetic Operators

    5. Control Statements

    6. Definition Statements

    7. String Methods

    8. List Methods

    9. Dictionary Functions

  6. Colophon