Cart
Free Shipping in the UK
Proud to be B-Corp

Jython Essentials Samuele Pedroni

Jython Essentials By Samuele Pedroni

Jython Essentials by Samuele Pedroni


£3.49
Condition - Very Good
Only 1 left

Summary

Jython is an implementation of the Python programming language, integrated with the Java platform. The secret to Jython's success lies in Java's architecture and tool set, and Python's rapid development. This work offers an introduction to the language, with reference material and examples.

Jython Essentials Summary

Jython Essentials by Samuele Pedroni

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.

About Samuele Pedroni

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. His research includes teaching Object-Oriented Programming and Design. He has worked with Java for five years, and with Python more recently. Noel also contributed a chapter, which introduced Squeak to Java or C++ programmers, to the book Squeak: Open Personal Computing and Multimedia (PH).

Table of Contents

Foreword Preface 1. Introduction to Jython Jython Requirements Welcome to Jython What's Jython Good For? The Benefits of Jython The Speed Question The Rest of the Book 2. Jython Basics Running Jython Basic Types Operators Numeric Types Sequences: Lists and Tuples Strings Mappings and Dictionaries Jython Files 3. Jython Control Flow Statements and Expressions Assignment Printing Blocks Conditional Logic Loops List Comprehensions Exceptions Evaluating Code Dynamically 4. Modules and Functions Modules Functions Parameter Passing with Style Import Statements and Packages 5. Object-Oriented Jython Creating Classes Methods Classes, Instances, and Access Control Inheritance Special Methods 6. Using Java from Jython Basic Object Usage Automatic Type Conversion Java Arrays and the jarray Module Java-to-Python Types: Automatic Conversion Collection Wrappers Avoiding Name Collisions 7. Inheriting from Java Basic Mechanics Java Interoperation and Overriding Calling Super Methods and Constructors 8. Reflection and JavaBeans Bean-Based Reflection Python-Based Reflection 9. Using Swing Java Versus Jython A Calculator An HTML Browser An HTML Source Browser 10. Using Java Libraries JDBC and the Python Database API Servlets and PyServlet Jython and XML 11. Jython Standard Library Using Python Modules System and File Modules Regular Expressions Serialization and Pickling Unit Testing with PyUnit 12. Embedding Jython Inside Java Setting Up an Interpreter Executing Code Accessing the Interpreter Namespace Using Objects PyObject Subclasses Catching Exceptions Embedding Examples 13. Compiling Jython Why Compile? The Compiler in Action Packaging in Java Archives Using Jython in Java A Simple Applet A. Installing Jython B. Jython Options and Registry C. Jython Exceptions D. Jython and CPython Differences E. Java-to-Python Quick Reference Index

Additional information

GOR001612316
9780596002473
0596002475
Jython Essentials by Samuele Pedroni
Used - Very Good
Hardback
O'Reilly Media, Inc, USA
2002-03-31
302
Book picture is for illustrative purposes only, actual binding, cover or edition may vary.
This is a used book - there is no escaping the fact it has been read by someone else and it will show signs of wear and previous use. Overall we expect it to be in very good condition, but if you are not entirely satisfied please get in touch with us

Customer Reviews - Jython Essentials