-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge file name changes only into master
- Loading branch information
Showing
22 changed files
with
222 additions
and
34 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
About the Technical Reviewers | ||
============================= | ||
|
||
|
||
Mark Ramm | ||
--------- | ||
|
||
Mark Ramm is project leader of TurboGears 2, and has written myriad articles, and a book about | ||
TurboGears. He is a web developer at GeekNet (geek.net) and is the founder of Compound Thinking | ||
(compoundthinking.com), a consulting and development company focused on Python training, and | ||
web application development. | ||
|
||
Tobias Ivarsson | ||
--------------- | ||
|
||
Tobias Ivarsson is a software developer at Neo Technology, the commercial backer of the open source | ||
graph database Neo4j (http://neo4j.org/). Tobias is also a developer on the Jython project, with focus on | ||
the compiler. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
About The Authors | ||
================= | ||
|
||
Josh Juneau | ||
----------- | ||
|
||
Josh Juneau has been a software developer since the mid 1990’s. He graduated | ||
from Northern Illinois University with a degree in Computer Science. His career | ||
began as an Oracle database administrator which later led into PL/SQL development | ||
and database programming. Josh began to use Java along with PL/SQL for developing | ||
web applications, and later shifted to Java as a primary base for application | ||
development. Josh has worked with Java in the form of web, GUI, and command-line | ||
programming for several years. During his tenure as a Java developer, he has | ||
worked with many frameworks including JSP, JSF, EJB, and JBoss Seam. At the same | ||
time, Josh expanded his usage of the JVM by developing applications with other | ||
JVM languages such as Jython and Groovy. Since 2006, Josh has been the editor and publisher for the Jython Monthly newsletter. | ||
In late 2008, he began a podcast dedicated to the Jython programming language. More modern releases of | ||
Jython have enabled Josh to begin using it as one of the primary languages for his professional development. | ||
Currently Josh spends his days developing Java and Jython applications, and working with Oracle databases. | ||
When he is not working, he enjoys spending time with his family. Josh also sneaks in enough time to maintain | ||
the jython.org website, hack on the Jython language, and work on other such projects. He can be contacted | ||
via his blog at http://www.jj-blogger.blogspot.com. | ||
|
||
|
||
Jim Baker | ||
--------- | ||
|
||
Jim Baker has over 15 years of software development experience, focusing on business intelligence, | ||
enterprise application integration, and high-performance web applications. He is a member of the | ||
Python Software Foundation and a committer on Jython. Jim has presented at Devoxx, EuroPython, JavaOne, | ||
and the Python Conference, as well at numerous user groups. He is a graduate of both Harvard and Brown. | ||
|
||
Victor Ng | ||
--------- | ||
|
||
Victor Ng has been slinging Python code in enterprises for 10 years and has worked in the banking, | ||
adventure travel, and telecommunications industries. Victor attended the University of Waterloo where | ||
he was busy learning to cook and didn’t attend too many classes. He lives just outside of Toronto, | ||
Ontario, in Canada. | ||
|
||
Leo Soto | ||
-------- | ||
|
||
Leonardo Soto is part of the Jython development team since the middle of 2008, after a successfully completed Google | ||
Summer of Code Project that aimed to run and integrate the Django web framework with Jython. He is also finishing his | ||
thesis to get the Informatics Engineering title from the Universidad de Santiago de Chile and works on Continuum, a Chilean software boutique. | ||
|
||
Leo has developed several software systems in the past seven years, most of them being web applications, and most of | ||
them based on the JavaEE (formerly J2EE) platform. However, he has been spoiled by Python since the start of his professional | ||
developer career, and he has missed its power and clarity countless times, which inexorably turned him toward the Jython project. | ||
|
||
Frank Wierzbicki | ||
---------------- | ||
|
||
Frank Wierzbicki is the head of the Jython project and a lead software | ||
developer at Sauce Labs. He has been programming since the Commodore | ||
64 was the king of home computers (look it up kids!) and can't imagine | ||
why anyone would do anything else for a living. Frank's most enduring | ||
hobby is picking up new programming languages, but he has yet to find | ||
one that is more fun to work with than Python. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,11 @@ Python for the Java Platform | |
Leo Soto, | ||
Frank Wierzbicki | ||
|
||
:Version: 1.0 of 10/18/2009 | ||
:Version: Approximately 1.0 of 03/25/2010 | ||
|
||
.. This is a partial update from Josh Juneau's repository | ||
at https://bitbucket.org/javajuneau/jythonbook | ||
This book is presented in open source and licensed through Creative Commons 3.0. | ||
You are free to copy, distribute, transmit, and/or adapt the work. This license | ||
|
@@ -46,75 +50,180 @@ Notice: For any reuse or distribution, you must make clear to the others | |
the license terms of this work. The best way to do this is with a direct | ||
link to this page: http://creativecommons.org/licenses/by-sa/3.0/ | ||
|
||
First edition printed by Apress Fall 2009 -- http://www.apress.com/book/view/9781430225270 | ||
Inside Cover (Apress first edition) | ||
=================================== | ||
|
||
.. This is verbatim from Josh's repo but some of it looks out of place in the | ||
electronic version. OTOH, what harm does it do to to credit here people | ||
who contributed to the paper edition? | ||
The Definitive Guide to Jython: Python for the Java Platform | ||
|
||
Copyright © 2010 by Josh Juneau, Jim Baker, Victor Ng, Leo Soto, Frank Wierzbicki | ||
|
||
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, | ||
electronic or mechanical, including photocopying, recording, or by any information storage or retrieval | ||
system, without the prior written permission of the copyright owner and the publisher. | ||
|
||
ISBN-13 (pbk): 978-1-4302-2527-0 | ||
|
||
ISBN-13 (electronic): 978-1-4302-2528-7 | ||
|
||
Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1 | ||
|
||
Trademarked names may appear in this book. Rather than use a trademark symbol with every | ||
occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of | ||
the trademark owner, with no intention of infringement of the trademark. | ||
|
||
Java™ and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc., in | ||
the US and other countries. Apress, Inc., is not affiliated with Sun Microsystems, Inc., and this book was | ||
written without endorsement from Sun Microsystems, Inc. | ||
|
||
Lead Editors: Steve Anglin, Duncan Parkes | ||
|
||
Technical Reviewers: Mark Ramm, Tobias Ivarsson | ||
|
||
Editorial Board: Clay Andres, Steve Anglin, Mark Beckner, Ewan Buckingham, Gary Cornell, | ||
Jonathan Gennick, Jonathan Hassell, Michelle Lowman, Matthew Moodie, Duncan Parkes, | ||
Jeffrey Pepper, Frank Pohlmann, Douglas Pundick, Ben Renow-Clarke, Dominic | ||
Shakeshaft, Matt Wade, Tom Welsh | ||
|
||
Coordinating Editor: Mary Tobin | ||
|
||
Copy Editor: Tracy Brown Collins | ||
|
||
Associate Production Director: Kari Brooks-Copony | ||
|
||
Manufacturing Director: Tom Debolski | ||
|
||
Distributed to the book trade worldwide by Springer-Verlag New York, Inc., 233 Spring Street, 6th Floor, | ||
New York, NY 10013. Phone 1-800-SPRINGER, fax 201-348-4505, e-mail [email protected], or | ||
visit http://www.springeronline.com. | ||
|
||
For information on translations, please e-mail [email protected], or visit http://www.apress.com. | ||
|
||
Apress and friends of ED books may be purchased in bulk for academic, corporate, or promotional use. | ||
eBook versions and licenses are also available for most titles. For more information, reference our | ||
Special Bulk Sales–eBook Licensing web page at http://www.apress.com/info/bulksales. | ||
|
||
The information in this book is distributed on an “as is” basis, without warranty. Although every | ||
precaution has been taken in the preparation of this work, neither the author(s) nor Apress shall have | ||
any liability to any person or entity with respect to any loss or damage caused or alleged to be caused | ||
directly or indirectly by the information contained in this work. | ||
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 book at http://jythonbook.com or | ||
check out the source at the book project on bitbucket at http://bitbucket.org/javajuneau/jythonbook/. | ||
|
||
Foreword (Apress first edition) | ||
=============================== | ||
|
||
I started using Python in 2003, and I fell in love with the language for a variety of reasons. The elegance | ||
of Python’s whitespace based syntax, the well conceived built in data types, and a beautiful set of library | ||
functions. Since that time, many other people have discovered or rediscovered Python. At the time of | ||
this writing, the software industry is well into a resurgence of dynamically typed languages: Ruby, PHP, | ||
and Python. | ||
It wasn’t until I attended my first PyCon in 2004 that I became aware of Jython. People were glad of | ||
the ability to run Python programs on the Java Virtual Machine (JVM), but were wistful because at the | ||
time Jython was lagging behind the native C Python (CPython) interpreter in terms of supporting recent | ||
versions of the language. Jython was maintained by a series of individual developers, but the task of | ||
staying current with CPython was really too much for any single person. In December 2005, Frank | ||
Wierzbicki took over as the lead developer for Jython, and over the next few years managed to foster a | ||
community of developers for Jython. The authors of this book are some of the members of that | ||
community. In June of 2009, the Jython community released Jython 2.5, which implemented the same | ||
language as CPython 2.5. This was a major leap forward, bringing Jython much closer to feature parity | ||
with CPython, and laying a foundation for catching up the rest of the way with CPython. Jython 2.5 is | ||
able to run many of the most popular Python packages, including Django, Pylons, and SQLAlchemy. | ||
Jython makes for a best of both worlds bridge between the elegant, expressive code of the Python | ||
world and the “enterprise ready” Java world. Developers who work in organizations where Java is | ||
already in use can now take advantage of the expressiveness and conciseness of Python by running their | ||
Python programs on Jython. Jython provides easy integration and interoperability between Python code | ||
and existing Java code. | ||
Jython also has something to offer existing Python programmers, namely access to the very rich | ||
ecosystem of the Java Virtual Machine. There is an enormous amount of Java code out in the world. | ||
There are libraries for every task imaginable, and more. Jython gives Python programmers a way to tap | ||
into these libraries, saving both development and testing time. Web applications running on Jython can | ||
also take advantage of the scalability benefits of Java web containers such as Tomcat or GlassFish. | ||
Things are looking very bright for Jython, and this book is a timely resource for people interested in | ||
taking advantage of the benefits that Jython has to offer. | ||
|
||
|
||
ISBN10: 1-4302-2527-0 | ||
Ted Leung | ||
|
||
ISBN13: 978-1-4302-2527-0 | ||
|
||
Source code will be available at: http://www.apress.com | ||
Front Matter | ||
============ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
aboutTheAuthors.rst | ||
attribution.rst | ||
aboutTechReviewers.rst | ||
|
||
|
||
Part I: Jython Basics: Learning the Language | ||
============================================== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
chapter1.rst | ||
chapter2.rst | ||
chapter3.rst | ||
chapter4.rst | ||
chapter5.rst | ||
chapter6.rst | ||
chapter7.rst | ||
|
||
|
||
LangSyntax.rst | ||
DataTypes.rst | ||
OpsExpressPF.rst | ||
DefiningFunctionsandUsingBuilt-Ins.rst | ||
InputOutput.rst | ||
ObjectOrientedJython.rst | ||
ExceptionHandlingDebug.rst | ||
ModulesPackages.rst | ||
|
||
|
||
Part II: Using the Language | ||
=========================== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
chapter8.rst | ||
chapter9.rst | ||
chapter10.rst | ||
chapter11.rst | ||
chapter12.rst | ||
Scripting.rst | ||
JythonAndJavaIntegration.rst | ||
JythonIDE.rst | ||
DatabasesAndJython.rst | ||
|
||
|
||
Part III: Developing Applications with Jython | ||
============================================= | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
chapter13.rst | ||
chapter14.rst | ||
chapter15.rst | ||
chapter16.rst | ||
chapter17.rst | ||
|
||
SimpleWebApps.rst | ||
JythonDjango.rst | ||
IntroToPylons.rst | ||
GUIApplications.rst | ||
DeploymentTargets.rst | ||
|
||
|
||
|
||
|
||
Part IV: Strategy and Technique | ||
================================ | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
chapter18.rst | ||
chapter19.rst | ||
Part V: Appendicies and Attribution | ||
==================================== | ||
|
||
TestingIntegration.rst | ||
Concurrency.rst | ||
|
||
Part V: Appendices | ||
=================== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
appendixA.rst | ||
appendixB.rst | ||
appendixC.rst | ||
attribution.rst | ||
|
||
|
||
|
||
Indices and tables | ||
================== | ||
|