Simple but fundamental: How to import a jython class?

aziz.hammadi at aziz.hammadi at
Thu Mar 23 13:51:55 CET 2006

I wrote a jython class bus I can not use it in another jython script
class X:
 def hello():
 print "Hello"

import X
x = X()

I get TypeError: call of non function (module 'X')
Both files are in the same directory.


More information about the Python-list mailing list