Python Programming with the Java Class Libraries: A Tutorial for Building Web and Enterprise Applications with Jython

Paperback (Print)
Used and New from Other Sellers
Used and New from Other Sellers
from $2.44
Usually ships in 1-2 business days
(Save 95%)
Other sellers (Paperback)
  • All (5) from $2.44   
  • New (3) from $28.00   
  • Used (2) from $2.44   
Close
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any BN.com coupons and promotions
$28.00
Seller since 2006

Feedback rating:

(339)

Condition:

New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

New
Boston, MA 2002 Trade paperback New. BRAND NEW. Trade paperback (US). Glued binding. 640 p. Audience: General/trade.

Ships from: Northbrook, IL

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$57.06
Seller since 2014

Feedback rating:

(2)

Condition: New
New

Ships from: Idyllwild, CA

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$61.61
Seller since 2008

Feedback rating:

(17544)

Condition: New
Brand New, Perfect Condition, Please allow 4-14 business days for delivery. 100% Money Back Guarantee, Over 1,000,000 customers served.

Ships from: Westminster, MD

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
Page 1 of 1
Showing All
Close
Sort by

Overview

Characterized by ease of use, richness of expression, and concise syntax, Python has remained a premier programming language for more than a decade, and is used by novices and professionals alike. In particular, its close relationship to Java™ makes the two languages, when used in combination, ideal for Web and distributed enterprise application development.

This tutorial begins with coverage of some of the basics of Python programming. Using plenty of skill-building exercises and interactive programming sessions, this book will help those new to programming develop an understanding of concepts and practical techniques. For experienced programmers, the book demonstrates Python's breadth of capabilities and shows the ways that Python interfaces with Java APIs for professional application development.

Python Programming with the Java™ Class Libraries: A Tutorial for Building Web and Enterprise Applications with Jython covers important topics such as:

  • Fundamental programming concepts, including statements, expressions, interpreters, and compilers
  • Python basics, including operators, string formatting, namespaces, classes, errors, and exceptions
  • Object-oriented programming concepts
  • File input/output
  • Python's intrinsic functions
  • Formatting, parsing, and manipulating strings
  • Interfacing with the Java APIs and working with Java Streams
  • Using Python and Java Swing to create GUIs
  • Working with SQL and JDBC™
  • Python and Java applets

In addition, the book contains instructions for downloading and installing the Python language and the Java Development Kit (JDK). Terminology, definitions, explanations, and numerous code samples make this book a useful learning experience.

Whether you are a sophisticated computer user new to programming or a serious application developer, Python Programming with the Java™ Class Libraries will give you insight into the power of Python and the know-how to put it to work.

0201616165B07022002

Read More Show Less

Editorial Reviews

From The Critics
Hightower is CTO for a global training and consulting company focusing on Enterprise Java Development, and a former software engineer at Intel's Enterprise Architecture Lab. His text is designed to teach nonprogrammers, novice programmers, and experienced programmers how to do programming using Python. Coverage includes basic programming concepts; Python basics; object-oriented programming concepts; file input/output; Python's intrinsic functions; formatting, parsing, and manipulating strings; interfacing with the Java APIs and working with Java Streams; using Python and Java Swing to create GUIs; working with SQL and JDBCª; and Python and Java applets. Annotation c. Book News, Inc., Portland, OR
Read More Show Less

Product Details

  • ISBN-13: 9780201616163
  • Publisher: Addison-Wesley
  • Publication date: 7/12/2002
  • Pages: 620
  • Product dimensions: 7.30 (w) x 9.20 (h) x 1.10 (d)

Meet the Author

Richard Hightower is the CTO at Trivera Technologies, a global training and consulting company that focuses on Enterprise Java Development. He leads the adoption of new processes including extreme programming, and helps implement coding standards and guidelines for development. He has created an extensible caching mechanism for caching JSPs, XSLTs, and JDBC results and a pluggable XSLT engine framework. Formerly the senior software engineer for Java Architecture at Intel's Enterprise Architecture Lab, Rick is a frequent contributor to Java™ Developer's Journal magazine and the coauthor of Java Tools for Extreme Programming (Wiley, 2001). At Intel, he led his team of developers in the design and implementation of three-tier, client-server applications; introduced O-O CASE tools; and created several frameworks using a variety of Java, COM, CORBA, and middleware technologies. Rick also created ICBeans and authored the patent application for this technology, which was awarded to Intel. A software engineer at heart, he specializes in development tools and processes, and developing enterprise applications using J2EETM, XML, UML, CORBA, JDBC, SQL, and Oracle technologies.

0201616165AB07022002

Read More Show Less

Read an Excerpt

Python is a dynamic programming language with the power of well-known languages such as Java, C++, and Smalltalk. In fact, Python is leaner and meaner than any of these languages and yet very expressive; it doesn't talk much, but it has a lot to say.

Python has another plus: the simplicity of languages such as VB Script and JavaScript, which makes it easy for beginning programmers to learn. Novices who know their way around a computer can pick it up quickly, particularly if they have ever created a spreadsheet that graphs and organizes data, written spreadsheet formulas, or created a Web page. For those who have, say, written macros and batch files or programmed in any language, Python will be a breeze.

A Very Short History

Python was derived from a language called ABC created by Guido van Rossum and others in the early 1980s. The hope was that ABC's designed-in ease of use would become popular with novices as a way to get up to programming speed quickly and painlessly. This hope didn't pan out, so van Rossum began a new project, Python, which was released in 1990. He didn't forget ABC; in fact, there's a lot of ABC in Python's concise syntax and elegant expression, as well as in its ease of use. The formula worked this time; Python succeeded where ABC failed, and it has stood the test of time.

What You Will Learn

Put simply, my goal with this book is to teach programming using Python. You'll learn the workings of Python and how to apply them, particularly for the following:

  • Abstract Windows Toolkit (AWT) and Swing application development
  • Java applet development
  • Internet programming
  • Regular expressions and patternmatching

You may not understand these concepts now, but you will by the end of the book. If you're looking for a full language reference, you won't get it here. What you will get is a deep enough understanding of Python to get started on your own programming. I'm going to remind you often of my belief that the best way to learn programming is by doing it. That's why I've provided lots of hands-on exercises in the form of interactive programming sessions, which I hope you'll follow along with at the keyboard as you read.

The Audience

As a reader of this book, you may be one of the following:

  • A nonprogrammer who wants to learn a programming language
  • A novice programmer who wants to learn Python

For simplicity, I'll call you both novices. You know your computer and how to use it to get the job done. If you're not a novice and you're reading this book, then you're an experienced programmer who wants to learn a higher-level language that's quicker and more powerful than the one you're using now. For simplicity, I'll call you programmers.

For Novices

You'll be introduced to Python in conversational English, with many step-by-step examples. Chapters 2 through 9 build progressively on the chapters preceding them, so you should be able to learn enough to begin writing useful Python programs. The goal is to give you as much of a headstart as possible. From Chapter 10 on you'll learn more about Python and about supporting Java and Python libraries on your own, as well as about Internet programming with Python.

For Programmers

Most likely you're an experienced Java programmer who's aware of the close relationship between Java and Python and how it can lead to better application development (we'll get into this more in Chapter 1). You can skip over or skim the basic material and concentrate on the Advanced Topic sections and the various sidebars that are geared to your level of understanding.

Now let's get into our tour of Python-the destination is worth the trip.



Read More Show Less

Table of Contents

(NOTE: Each chapter concludes with a Summary.)
Preface.
1. Jython Overview.

Programming, Briefly.
Learning Python First.
Python the Language.
Starting with Python.
Basic Functions with Python.
Python as a Main Program.
The Fast Track.
The Power of Python.
Where Do You Go from Here?

2. Statements and Expressions.

Comments and Document Strings.
Statements.
Expressions.
Variables.
Data Types.
Python Collection Types.
Advanced Topic: Determining Types at Runtime.
Literals.

3. Operators and String Formatting.

Operators.
Formatting Strings—Modulus.

4. Control Flow.

The if Statement.
The while Statement.
The for Statement.
Putting It All Together.

5. Organizing Your Code.

Evolution of a Programmer.
Code Blocks and Namespaces.
Modules.
Functions and Methods.
Putting Things Together.
Classes.
Packages.
Globals and the Global Statement.

6. Object-Oriented Programming.

What Is OOP?
Objects and Classes.
Special Class Methods.
Inheritance.
Polymorphism.

7. Errors and Exceptions.

Syntax and Sequence Errors.
The Danger of Exceptions.
The try Statement.
The raise Statement.
Classes and Instances as Exceptions.
Getting the Most Out of Your Exceptions.

8. Working with Files.

Simple File Operations.
Common File Methods.
Putting It All Together: The Address Book Example.
The Full address3.py Code.
Persisting Objects with pickle.
pickle and the Address Book Application.

9. Built-In Functions.

Conversion.
Namespace: dir(), globals(), locals(), vars().
Type Checking: callable(), type().
Operations.
Advanced Topic: Functional Programming.
Advanced exec and eval.

10. Working with Strings.

Conversion: atoi(), atof(), atol().
Case Change: capitalize(), capwords(), swapcases(), lower(),upper().
Finding: find(), rfind(), index(), rindex(), count(), replace().
Splitting and Joining: split(), splitfields(), join(), joinfields().
Stripping and Parsing: lstrip(), rstrip(), strip().
Adjusting Text: ljust(), rjust(), center(), zfill(), expandtabs().

11. Interfacing with Java.

Using the Java APIs.
Java Types.
Java Constructors.
Java Arrays and jarray.
Java Arrays and Methods.
Bean Properties.
Properties.
Java Event Handling.
Subclassing Java Classes.
Advanced Topics.

12. Working with Java Streams.

The Java Way of File Operations.
Text Streams.
Binary Streams: InputStream and OutputStream.
DataInput and DataOutput.
The File Class.
The RandomAccessFile Class.
The StreamTokenizer Class.
Persisting Objects with Java Streams.
Using Java Streams to Work with Memory.

13. JFC Fundamentals.

Components and Containers.
JFrame.
Handling Events with JFrame.
The Python Way of Handling Events.
The Class Hierarchy for JFrame and Frame.
JPanel.
JLabel.
JComponent.
JButton.
JTextField.
JCheckBox.
JRadioButton.
List and Jlist.

14. First Swing Application, Layout, and Menu.

Putting Things Together with Basic Java GUIs.
Adding an Input Form for an Address Entry: The Prototype.
Adding an Input Form for an Address Entry: First Cut.
Adding a Main Window for the Address Book Application: Prototype.
Adding a Main Window: First Cut.
Adding a Toolbar and a Dialog for the Address Book Application.
Menus.
Layout Managers.
A GridBagLayout Example.
Putting Things Together: Adding GridBagLayout to the Address Application.

15. Graphics and Events.

A Quick Graphics Tour.
A Quick Tour of Common Events.
Putting Things Together: A Drawing Program.
The Complete Shapes and DrawShapes Modules.

16. Advanced Swing.

JTable.
Working with Table Models.
Putting Things Together—Adding a Table Model to the Address Book Application.
JTree.
JToolBar and Actions.

17. SQL and JDBC.

A Quick and Dirty JDBC Session.
Programming with JDBC and SQL.
SQL Data Definition Language.
SQL Data Manipulation Language.
Putting It All Together—Adding Database Support to the Address Book Application.

18. Applets.

What Are Applets?
Working with Applets.
Using an Applet as a Container.
Transforming the Address Book Application into an Applet.
Advanced Topic: AppletContext and AppletStub.

Appendix A: Installing Jython on Windows.

Installing Java Runtime.
Installing the J2SE—Step by Step.
Installing Jython.

Appendix B: Installing Jython on Linux by Jaysen Lorenzen.

Unpacking the Blackdown Package.
Unpacking the Sun Package.
Installing the Sun and Blackdown Distributions.
Installing Older Distributions.
Running Jython.

Appendix C: The Power of Scripting.

Scripting Versus Programming Languages.
Java and Scripting.
Integrating Scripting with Jython.
Which Scripting Language to Choose.
Hello World—The Programming Rosetta Stone.
What Does It All Mean?

Appendix D: Java and Python: A Comparison.

Python 101.
A GUI Application.
A Statistics Application.
A String Parsing Example.
Embedding Jython in Java.

Appendix E: Regular Expressions by Jaysen Lorenzen.

A Simple Example.
Pattern Characteristics.
Regular Expression Functions and Error and Flags Properties.
re Object Methods and Properties.
match Object Methods and Properties.
Metacharacters.
Putting Things Together by Rick Hightower.

Index. 0201616165T06242002

Read More Show Less

Preface

Python is a dynamic programming language with the power of well-known languages such as Java, C++, and Smalltalk. In fact, Python is leaner and meaner than any of these languages and yet very expressive; it doesn’t talk much, but it has a lot to say.

Python has another plus: the simplicity of languages such as VB Script and JavaScript, which makes it easy for beginning programmers to learn. Novices who know their way around a computer can pick it up quickly, particularly if they have ever created a spreadsheet that graphs and organizes data, written spreadsheet formulas, or created a Web page. For those who have, say, written macros and batch files or programmed in any language, Python will be a breeze.

A Very Short History

Python was derived from a language called ABC created by Guido van Rossum and others in the early 1980s. The hope was that ABC’s designed-in ease of use would become popular with novices as a way to get up to programming speed quickly and painlessly. This hope didn’t pan out, so van Rossum began a new project, Python, which was released in 1990. He didn’t forget ABC; in fact, there’s a lot of ABC in Python’s concise syntax and elegant expression, as well as in its ease of use. The formula worked this time; Python succeeded where ABC failed, and it has stood the test of time.

What You Will Learn

Put simply, my goal with this book is to teach programming using Python. You’ll learn the workings of Python and how to apply them, particularly for the following:

  • Abstract Windows Toolkit (AWT) and Swing application development
  • Java applet development
  • Internet programming
  • Regular expressions and pattern matching

You may not understand these concepts now, but you will by the end of the book. If you’re looking for a full language reference, you won’t get it here. What you will get is a deep enough understanding of Python to get started on your own programming. I’m going to remind you often of my belief that the best way to learn programming is by doing it. That’s why I’ve provided lots of hands-on exercises in the form of interactive programming sessions, which I hope you’ll follow along with at the keyboard as you read.

The Audience

As a reader of this book, you may be one of the following:

  • A nonprogrammer who wants to learn a programming language
  • A novice programmer who wants to learn Python

For simplicity, I’ll call you both novices. You know your computer and how to use it to get the job done. If you’re not a novice and you’re reading this book, then you’re an experienced programmer who wants to learn a higher-level language that’s quicker and more powerful than the one you’re using now. For simplicity, I’ll call you programmers.

For Novices

You’ll be introduced to Python in conversational English, with many step-by-step examples. Chapters 2 through 9 build progressively on the chapters preceding them, so you should be able to learn enough to begin writing useful Python programs. The goal is to give you as much of a headstart as possible. From Chapter 10 on you’ll learn more about Python and about supporting Java and Python libraries on your own, as well as about Internet programming with Python.

For Programmers

Most likely you’re an experienced Java programmer who’s aware of the close relationship between Java and Python and how it can lead to better application development (we’ll get into this more in Chapter 1). You can skip over or skim the basic material and concentrate on the Advanced Topic sections and the various sidebars that are geared to your level of understanding.

Now let’s get into our tour of Python-the destination is worth the trip.

0201616165P06262002

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)