: Josh Juneau, Jim Baker, Frank Wierzbicki, Leo Soto Muoz, Victor Ng, Alex Ng, Donna L. Baker
: The Definitive Guide to Jython Python for the Java Platform
: Apress
: 9781430225287
: 1
: CHF 60.30
:
: Allgemeines, Lexika
: English
: 544
: Wasserzeichen/DRM
: PC/MAC/eReader/Tablet
: PDF

Jython is an open source implementation of the high-level, dynamic, object-oriented scripting language Python seamlessly integrated with the Java platform. The predecessor to Jython, JPython, is certified as 100% Pure Java. Jython is freely available for both commercial and noncommercial use and is distributed with source code. Jython is complementary to Java.

The Definitive Guide to Jython, written by the official Jython team leads, covers Jython 2.5 (or 2.5.x)-from the basics to more advanced features. This book begins with a brief introduction to the language and then journeys through Jython's different features and uses.

The Definitive Guide to Jython is organized for beginners as well as advanced users of the language. The book provides a general overview of the Jython language itself, but it also includes intermediate and advanced topics regarding database, web, and graphical user interface (GUI) applications; Web services/SOA; and integration, concurrency, and parallelism, to name a few.



Josh Juneau has been developing software since the mid-1990s. PL/SQL development and database programming was the focus of his career in the beginning, but as his skills developed, he began to use Java and later shifted to it as a primary base for his application development. Josh has worked with Java in the form of graphical user interface, web, and command-line programming for several years. During his tenure as a Java developer, he has worked with many frameworks such as JSF, EJB, and JBoss Seam. At the same time, Josh has extended his knowledge of the Java Virtual Machine (JVM) by learning and developing applications with other JVM languages such as Jython and Groovy. His interest in learning new languages that run on the JVM led to his interest in Jython. 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.
The Definitive Guide to Jython1
Copyright Page2
Contents at a Glance3
Contents5
Foreword19
About the Authors20
About the Technical Reviewers22
Acknowledgments23
Introduction26
PART 1 Jython Basics: Learning the Language28
CHAPTER 1 Language and Syntax30
The Difference between Jython and Python31
Installing and Configuring Jython31
Identifiers and Declaring Variables32
Reserved Words33
Coding Structure33
Operators35
Expressions35
Functions36
Classes37
Statements38
if-elif-else Statement39
print Statement40
try-except-finally42
raise Statement43
import Statement44
Iteration44
While Loop46
For Loop47
Basic Keyboard Input47
Other Python Statements48
Documenting Code49
Python Help50
Summary51
CHAPTER 2 Data Types and Referencing52
Python Data Types52
Strings and String Methods54
Lists, Dictionaries, Sets, and Tuples60
Jython-specific Collections77
Files79
Iterators81
Referencing and Copies82
Garbage Collection84
Summary85
CHAPTER 3 Operators, Expressions, and Program Flow86
Types of Expressions86
Mathematical Operations86
Comparison Operators90
Bitwise Operators92
Augmented Assignment93
Boolean Expressions95
Conversions97
Using Expressions to Control Program Flow99
if-elif-else Statement99
while Loop100
continue Statement101
break Statement102
for Loop103
Example Code104
Summary106
CHAPTER 4 Defining Functions and Using Built-ins107
Function Syntax and Basics107
The def Keyword108
Naming the Function108
Function Parameters and Calling Functions110
Function Body112
Miscellaneous Information for the Curious Reader116
Built-in Functions