View Review Details


Book:   Jython Essentials
Subject:   More examples please
Date:   2004-07-30 04:19:51
From:   Anonymous Reader
Rating:  StarStarStarStarStar

I thought overall it was well laid out and covered most of the points, but thought it would have been far better if there had been more examples included, and any gotchas.


For example:
Putting the following into Y.py
class Y:
def __init__(self):
print "foo"


then in the console doing:


import Y
y = Y()


gives the following error:
Traceback (innermost last):
File "<console>", line 1, in ?
TypeError: call of non-function (module 'Y')


but it works ok if you type the class definition into the console.


This sort of problem could have been gone into in the book - there are other examples.


The book assumes that one knows exactly how to do things in python, and that everything will work just fine 1st time




See larger cover

Full Threads Oldest First