From: Ype K. <yk...@xs...> - 2002-03-19 18:16:51
|
Brad, >I've just begun experimenting with jpython (just today). Hope to use it to replace velocity as the teacher-programmable component of the interactive learning environment at http://virtualschool.edu/jile. > >My first problem is that tutorial chapter on strings isn't working right (on Linux 7.0 Redhat) >>>> "Hello world" >"Hello world" > >>>> "Hello\ >Syntax error: LexicalScanner Encountered <EOF> after \ > >This one is critical and preventing me from exploring deeper. Use triple quotes around your string when you need it to contain newlines: """Hello world. """ > >Second problem is that command history isn't working. readline is definitely installed but isn't being recognized by the installer. Have a look at the registry file in the jython directory (where jython.jar is), and look for the readline option. It needs a java class that accesses the native readline lib that you may have to download iirc. There is also a simple Console.py in the demo dir that has an up arrow which is good enough for me. Regards, Ype -- |