rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9780596002473

Jython Essentials

by ; ;
  • ISBN13:

    9780596002473

  • ISBN10:

    0596002475

  • Edition: 1st
  • Format: Paperback
  • Copyright: 2002-03-01
  • Publisher: Oreilly & Associates Inc

Note: Supplemental materials are not guaranteed with Rental or Used book purchases.

Purchase Benefits

  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $34.99 Save up to $10.06
  • Rent Book $24.93
    Add to Cart Free Shipping Icon Free Shipping

    TERM
    PRICE
    DUE
    USUALLY SHIPS IN 3-5 BUSINESS DAYS
    *This item is part of an exclusive publisher rental program and requires an additional convenience fee. This fee will be reflected in the shopping cart.

How To: Textbook Rental

Looking to rent a book? Rent Jython Essentials [ISBN: 9780596002473] for the semester, quarter, and short term or search our site for other textbooks by Pedroni, Samuele; Rappin, Noel; Hugunin, Jim. Renting a textbook can save you up to 90% from the cost of buying.

Summary

Jython is an implementation of the Python programming language written in Java, allowing Python programs to integrate seamlessly with any Java code. The secret to Jython's popularity lies in the combination of Java's libraries and tools with Python's rapid development capabilities. Jython Essentials provides a solid introduction to the language, numerous examples of Jython/Java interaction, and valuable reference material on modules and libraries of use to Jython programmers.

Author Biography

Samuele Pedroni is one of the main Jython developers. He holds a CS flavored diploma in mathematics from the ETH Zurich (Swiss institute of technology in Zurich). He is now a teacher and research assistant at the Institute of Theoretical CS. He plans to come to the US for a PhD in the field of dynamic languages and dynamic compilation. He came to Jython with the interest in improving it with respect to Java importing and reloading. He has developed several important patches related to java integration, classloaders, and the reworking of java/python importing rules and design.

Noel Rappin has a Ph.D. in computer science from the Georgia Institute of Technology, where his research included methods for teaching Object-Oriented Programming and Design. He has extensive production experience in both Java and Python. Noel also contributed an introductory chapter to the book Squeak: Open Personal Computing and Multimedia (PH).

Table of Contents

Foreword ix
Preface xiii
Introduction to Jython
1(15)
Jython Requirements
1(1)
Welcome to Jython
2(5)
What's Jython Good For?
7(2)
The Benefits of Jython
9(4)
The Speed Question
13(1)
The Rest of the Book
14(2)
Jython Basics
16(30)
Running Jython
16(2)
Basic Types
18(2)
Operators
20(2)
Numeric Types
22(3)
Sequences: Lists and Tuples
25(8)
Strings
33(7)
Mappings and Dictionaries
40(4)
Jython Files
44(2)
Jython Control Flow
46(20)
Statements and Expressions
46(1)
Assignment
47(4)
Printing
51(1)
Blocks
52(2)
Conditional Logic
54(2)
Loops
56(2)
List Comprehensions
58(3)
Exceptions
61(2)
Evaluating Code Dynamically
63(3)
Modules and Functions
66(17)
Modules
66(2)
Functions
68(1)
Parameter Passing with Style
69(8)
Import Statements and Packages
77(6)
Object-Oriented Jython
83(21)
Creating Classes
83(2)
Methods
85(4)
Classes, Instances, and Access Control
89(7)
Inheritance
96(2)
Special Methods
98(6)
Using Java from Jython
104(16)
Basic Object Usage
104(3)
Automatic Type Conversion
107(5)
Java Arrays and the jarray Module
112(3)
Java-co-Python Types: Automatic Conversion
115(2)
Collection Wrappers
117(1)
Avoiding Name Collisions
117(3)
Inheriting from lava
120(11)
Basic Mechanics
121(2)
Java Interoperation and Overriding
123(4)
Calling Super Methods and Constructors
127(4)
Reflection and JavaBeans
131(13)
Bean-Based Reflection
132(6)
Python-Based Reflection
138(6)
Using Swing
144(17)
Java Versus Jython
145(4)
A Calculator
149(3)
An HTML Browser
152(3)
An HTML Source Browser
155(6)
Using Java Libraries
161(17)
JDBC and the Python Database API
161(4)
Servlets and PyServlet
165(5)
Jython and XML
170(8)
Jython Standard Library
178(25)
Using Python Modules
178(1)
System and File Modules
179(8)
Regular Expressions
187(7)
Serialization and Pickling
194(3)
Unit Testing with PyUnit
197(6)
Embedding Jython Inside Java
203(15)
Setting Up an Interpreter
204(2)
Executing Code
206(2)
Accessing the Interpreter Namespace
208(1)
Using PyObjects
209(2)
PyObject Subclasses
211(3)
Catching Exceptions
214(1)
Embedding Examples
214(4)
Compiling Jython
218(13)
Why Compile?
218(2)
The Compiler in Action
220(4)
Packaging in Java Archives
224(1)
Using Jython in Java
225(4)
A Simple Applet
229(2)
A. Installing Jython 231(3)
B. Jython Options and Registry 234(6)
C. Jython Exceptions 240(4)
D. Jython and CPython Differences 244(6)
E. Java-to-Python Quick Reference 250(7)
Index 257

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program