Skip to Main Content
The Definitive Guide to Jython: Python for the Java™ Platform
book

The Definitive Guide to Jython: Python for the Java™ Platform

by Josh Juneau, Jim Baker, Victor Ng, Leo Soto, Frank Wierzbicki
March 2010
Beginner to intermediate content levelBeginner to intermediate
544 pages
13h 28m
English
Apress
Content preview from The Definitive Guide to Jython: Python for the Java™ Platform

Chapter 9. Scripting With Jython

In this chapter, we will look at scripting with Jython. For our purposes, we will define "scripting" as the writing of small programs to help out with daily tasks. These tasks are things like deleting and creating directories, managing files and programs, and anything else that feels repetitive that you might be able to express as a small program. In practice, however, scripts can become so large that the line between a script and a full sized program can blur.

We'll start with some very small examples to give you a feel for the sorts of tasks you might script from Jython. Then we'll cover a medium-sized task to show the use of a few of these techniques together.

Getting the Arguments Passed to a Script

All but the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

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

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

Richard Hightower
Jython Essentials

Jython Essentials

Samuele Pedroni, Noel Rappin

Publisher Resources

ISBN: 9781430225270Purchase book