■
ACKNOWLEDGMENTS
xxv
First
and foremost, I want to thank my wife, Jill Fitzgibbons, for all of the support she has given through
all of these years of Jython work. Most of that work occurred on weekends, nights, while on vacation, and
other times inconvenient to my family. My daughter, Lily, who is five at the time of writing, has also
needed to show patience when her dad was working on Jython and on this book. I want to thank my
parents, who brought a Commodore 64 into the house when I was still impressionable enough to get
sucked into a life of programming. I also want to thank all of the contributors and users of Jython. They
make my work on Jython and this book worth doing.
Frank Wierzbicki
www.it-ebooks.info
■
ACKNOWLEDGMENTS
xxvi
Introduction
Jython brings the power of the Python language to the JVM. It provides Java developers
the ability to write
productive and dynamic code using an elegant syntax. Likewise, it allows Python developers to harness the
plethora of useful Java libraries and APIs that the JVM has to offer. We wrote this book in an effort to provide a
complete guide for developers from both parties. Whether you are a seasoned Java developer looking to add a
mature dynamic language to your arsenal, or a connoisseur of the Python language, this book provides useful
information
in an easy-to-read fashion, which will help you become a professional Jython developer.
This book is organized so that each chapter is encapsulated as its own entity and can be read
separately from the others. This provides the ability to jump around the book if you’d like, or read it from
start to finish. Some chapters contain references to other parts of the book and this book builds upon
itself to guide a novice or a seasoned developer into becoming an expert Jython programmer. Since this
is a multi-author book, each of the chapters was written by an individual author or a pair of authors, and
because of this you may find that the chapters each contain a unique touch, but they are orchestrated in
such a way that they work very well together.
Part I of this book will take a look at the Python language and provide a tutorial
to guide you through
learning the language from the ground up. It contains Python language basics, as well as Jython-specific
portions for those who already know Python. Until now, using Jython in Java applications has not been
very well documented. Part II addresses this topic, teaches you how to use Python and Java techniques
for working with databases, and even shows how to develop Jython using both
the Eclipse and Netbeans
IDEs. The second part of the book is all about making use of Jython. Part III delves into developing full
applications with Jython, deploying them in different environments, and also testing them to ensure
stability. In this part, you’ll learn how to use the Django and Pylons web frameworks to develop
sophisticated web applications, and you’ll also learn how to develop robust
desktop applications using
the Java Swing API along with Jython. Lastly, Part IV covers some concepts for making your application
development more productive, and ensuring that your Jython code is efficient. You’ll learn how to run
tests against your Jython code and set up continuous integration using Hudson. Advanced threading and
concurrency concepts are covered in Part IV to ensure that you have the knowledge to build Jython code
that performs well and runs efficiently. In the end, this book is great to read from start to finish, but also
very useful as a reference guide to using Jython with different technologies.
This book is available online under the Creative Commons Attribution
Share-Alike license
(http://creativecommons.org/licenses/by-sa/3.0/). You can read the open source book at
http://jythonbook.com. I’d like to personally thank James Gardner, author of the
Definitive Guide to
Pylons from Apress, for assisting us in transforming our book into restructured text format, which is used
to generate the Open Source online version.
Throughout the book, you will find a number of code examples. Many
of the examples are Python
code; however, there are also plenty of Java examples as well as those working with web markup
languages. All code examples will be in the code font. The examples are available on the Apress website
at http://www.apress.com as well as at the Open Source site http://jythonbook.com.
This book will continue to evolve and we will continually update both the online version and the
printed copy. We’d like to thank members of the Jython community for contributing to the book,
especially Andrea Aime and others who wrote to the mailing lists providing comments and feedback for
book content. We would like to advocate that the community continues to stay involved with the book. If
you would like to post comments or suggestions for the book or if you find errors, please submit them
via apress.com.
www.it-ebooks.info
■
INTRODUCTION
xxvii
Thanks
for reading this book, and for developing with the Jython language. We had a great time
working on this book and hope that you enjoy reading it just as much. We look forward to continually
updating this book, and seeing what the future will hold for Jython. Surely if Jython remains as active as
it is today, we will all enjoy it long into the future.
www.it-ebooks.info