Simple but fundamental: How to import a jython class?
aziz.hammadi at gmail.com
aziz.hammadi at gmail.com
Thu Mar 23 07:51:55 EST 2006
More information about the Python-list mailing list
Thu Mar 23 07:51:55 EST 2006
- Previous message (by thread): Simple but fundamental: How to import a jython class?
- Next message (by thread): Simple but fundamental: How to import a jython class?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I wrote a jython class bus I can not use it in another jython script :-( Example: ---------------------- X.py---------------------- class X: def hello(): print "Hello" ---------------------- Y.py---------------------- import X x = X() x.hello() I get TypeError: call of non function (module 'X') Both files are in the same directory. Tanks!
- Previous message (by thread): Simple but fundamental: How to import a jython class?
- Next message (by thread): Simple but fundamental: How to import a jython class?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list