■
iii
Contents at a Glance
Contents at a Glance...........................................................................................................................iii
Contents ............................................................................................................................................... v
Foreword ........................................................................................................................................... xix
About the Authors.............................................................................................................................. xx
About the Technical Reviewers....................................................................................................... xxii
Acknowledgments .......................................................................................................................... xxiii
Introduction..................................................................................................................................... xxvi
Part I: Jython Basics: Learning the Language....................................................................................1
■
Chapter 1: Language and Syntax....................................................................................................3
■
Chapter 2: Data Types and Referencing .......................................................................................25
■
Chapter 3: Operators, Expressions, and Program Flow ...............................................................59
■
Chapter 4: Defining Functions and Using Built-ins ......................................................................81
■
Chapter 5: Input and Output........................................................................................................105
■
Chapter 6: Object-Oriented Jython .............................................................................................113
■
Chapter 7: Exception Handling and Debugging..........................................................................133
■
Chapter 8: Modules and Packages for Code Reuse ...................................................................151
Part II: Using the Language .............................................................................................................163
■
Chapter 9: Scripting With Jython................................................................................................165
■
Chapter 10: Jython and Java Integration ...................................................................................175
■
Chapter 11: Using Jython in an IDE ............................................................................................197
■
Chapter 12: Databases and Jython: Object Relational Mapping and Using JDBC ....................231
Part III: Developing Applications with Jython ................................................................................263
■
Chapter 13: Simple Web Applications ........................................................................................265
■
Chapter 14: Web Applications With Django................................................................................281
■
Chapter 15: Introduction to Pylons .............................................................................................327
■
Chapter 16: GUI Applications ......................................................................................................347
www.it-ebooks.info
■
CONTENTS AT A GLANCE
iv
■
Chapter 17: Deployment Targets ................................................................................................359
Part IV: Strategy and Technique......................................................................................................377
■
Chapter 18: Testing and Continuous Integration .......................................................................379
■
Chapter 19: Concurrency.............................................................................................................413
■
Appendix A: Using Other Tools with Jython ...............................................................................437
■
Appendix B: Jython Cookbook ....................................................................................................445
■
Appendix C: Built-in Functions ...................................................................................................463
Index.................................................................................................................................................485
www.it-ebooks.info
■
v
Contents
Contents at a Glance...........................................................................................................................iii
Contents ............................................................................................................................................... v
Foreword ........................................................................................................................................... xix
About the Authors.............................................................................................................................. xx
About the Technical Reviewers....................................................................................................... xxii
Acknowledgments .......................................................................................................................... xxiii
Introduction..................................................................................................................................... xxvi
Part I: Jython Basics: Learning the Language....................................................................................1
■
Chapter 1: Language and Syntax....................................................................................................3
The Difference between Jython and Python........................................................................................ 4
Installing and Configuring Jython ....................................................................................................... 4
Identifiers and Declaring Variables ..................................................................................................... 5
Reserved Words................................................................................................................................. 6
Coding Structure ................................................................................................................................ 6
Operators........................................................................................................................................... 8
Expressions ....................................................................................................................................... 8
Functions ........................................................................................................................................... 9
Classes ............................................................................................................................................ 10
Statements ...................................................................................................................................... 11
if-elif-else Statement ................................................................................................................... 12
print Statement............................................................................................................................ 13
try-except-finally ......................................................................................................................... 15
raise Statement ........................................................................................................................... 16
import Statement ......................................................................................................................... 17
Iteration ........................................................................................................................................... 17
While Loop................................................................................................................................... 19
For Loop ...................................................................................................................................... 20
Basic Keyboard Input ....................................................................................................................... 20
www.it-ebooks.info
Dostları ilə paylaş: |