You need to close the quote on
         print os.system("python example.py)

Ronnie Z. Dlomo
012 673 7574
rdlomo@momentum.co.za



"claire letienne" <claireletienne@hotmail.com>
Sent by: jython-users-admin@lists.sourceforge.net

2004/08/17 03:37 PM

To
jython-users@lists.sourceforge.net
cc
Subject
[Jython-users] using python module: input problem





I am trying to use simple python modules in jython, but I have a probleme
with the "input" in python:

example_py.py: print "give a number"
                       a=input()
                       def double(a):
                             return a*2
                       print double(a)

example_jy.py:  import os
                       print os.system("python example.py)

when compiling: Traceback (most recent call last):
                        File "example_py.py", line 2, in ?
                        a=input()

and it doesn't work
Thank you very much for your help!
Claire

_________________________________________________________________
Dialoguez en direct et gratuitement avec vos amis sur
http://g.msn.fr/FR1001/866 MSN Messenger !



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users