Jython Essentials: Rapid Scripting in Java

Jython Essentials: Rapid Scripting in Java

by Samuele Pedroni, Noel Rappin
Jython Essentials: Rapid Scripting in Java

Jython Essentials: Rapid Scripting in Java

by Samuele Pedroni, Noel Rappin

Paperback(2002)

$34.99 
  • SHIP THIS ITEM
    Qualifies for Free Shipping
  • PICK UP IN STORE
    Check Availability at Nearby Stores

Related collections and offers


Overview

Jython is an implementation of the Python programming language written in 100% pure Java, so it runs under any compliant Java Virtual Machine. The secret to Jython's popularity lies in the combination of Java's libraries and tools with Python's rapid development capabilities. With Jython, you can write Python programs that integrate seamlessly with any Java code. And like Python, Jython can be used interactively, so you can get immediate results as you are programming. Jython Essentials provides a solid introduction to the Python language, offering a brief but thorough tour of the Python concepts you'll need to understand to use Jython effectively. The book makes frequent comparisons between Python and Java, with special emphasis on the different object-oriented semantics of the two languages, so Java programmers can quickly get up to speed with Jython. Jython Essentials also covers the various ways in which Jython and Java can interact. For example, Jython code can create instances of pre-existing Java classes and call methods in those instances. You can write Jython classes that are direct subclasses of existing Java classes and use introspection to discern the capabilities of JavaBeans components. This book provides examples of using Jython with existing Java libraries, including the Swing GUI toolkit, the JDBC database API, the Servlet API, and various XML tools. And finally, the book shows how Jython can be used as a scripting language within a Java program. With Jython Essentials, you have everything you need to start creating applications that mix the best of Python's interactivity and Java's robust libraries.

Product Details

ISBN-13: 9780596002473
Publisher: O'Reilly Media, Incorporated
Publication date: 03/28/2002
Edition description: 2002
Pages: 300
Product dimensions: 5.90(w) x 8.80(h) x 0.70(d)

About the Author

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
  • Preface
  • Chapter 1: Introduction to Jython
  • Chapter 2: Jython Basics
  • Chapter 3: Jython Control Flow
  • Chapter 4: Modules and Functions
  • Chapter 5: Object-Oriented Jython
  • Chapter 6: Using Java from Jython
  • Chapter 7: Inheriting from Java
  • Chapter 8: Reflection and JavaBeans
  • Chapter 9: Using Swing
  • Chapter 10: Using Java Libraries
  • Chapter 11: Jython Standard Library
  • Chapter 12: Embedding Jython Inside Java
  • Chapter 13: Compiling Jython
  • Installing Jython
  • Jython Options and Registry
  • Jython Exceptions
  • Jython and CPython Differences
  • Java-to-Python Quick Reference
  • Colophon
From the B&N Reads Blog

Customer Reviews