Errata

Jython Essentials

Errata for Jython Essentials

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page 5
Section "Adding Behavior"

Beginning of second sentence of section: "We I (sic) want it to place
some text in the text field depending..."

Anonymous   
Printed Page 33
2nd paragraph, 1st sentence

sentence reads "...all in-place modification operations that are defined on lists
raise a built-in TypeError exception."

should read "... defined on tuples raise a built-in TypeError exception."

(s/lists/tuples/)

Anonymous   
Printed Page 33
pg. 33, paragraph 2

page 33 says "Tuples offer no methods..."

page 36, paragraph 4 reads "The methods count and index discussed for lists and
tuples are also defined for strings..."

Either tuples do offer methods, or the language is confusing.

Anonymous   
Printed Page 57
5th paragraph (2nd paragraph from the bottom)

the output for the code:

for x in range(3):
print x

should be

0
1
2

instead of

1
2
3

Anonymous   
Printed Page 69
4th paragraph (indented)

In the last sentence, it says, "...raises a StopIter exception,..."

"StopIter" should be "StopIteration."

Anonymous   
Printed Page 73,77,78,79
anywhere 2 underscores appear e.g. __init__, __main__, __future__

You should typeset so that it's clear that __main__ has 2 underscores before and 2
after, this wouldn't be obvious to somebody starting in Python.

Anonymous   
Printed Page 115
Code listing

The call to i.close-() is an error. Should be i.close()

Anonymous   
Printed Page 147
Example 9-2

It is important to register the default JFrame behavior on close. By default JFrame
just hides when the window closes... so you may end up with hanging processes.

Adding the following line registers that you want to exit the application when you
close the window:

self.setDefaultCloseOperation(self.EXIT_ON_CLOSE)

Anonymous   
Printed Page 153
self.htmlPane = swing.JEditorPane(urlString, editable=0,

hyperlinkUpdate=self.followHyperlink, size=(400,400));
Clicking on hyperlinks in the Html_Browser.py does not fire the followHyperlink
function.

Using Windows XP, with jdk1.4, and jython 2.1.

Anonymous   
Printed Page 192
line that begins: "Matches any alphanumeric"

a-zA-z0-9_ should read a-zA-Z0-9_
*

Anonymous   
Printed Page 247
Section "Unicode strings"

The built-in funtion is spelled chr(), not char()

Anonymous   
Printed Page 272
2nd column middle

range() is not listed in the index

Anonymous