Message653
 
            
            
            
 
   
   
 
  | I copied jython.jar to our z/OS machine and typed
java -classpath jython.jar org.python.util.jython
and this is what happened:
Jython 2.1 on java1.3.1 (JIT: jitc)
Traceback (innermost last):
  (no code object) at line 0
  File "<string>", line 1
        ¬ZZ
        ^
SyntaxError: Lexical error at line 1, column 1.  
Encountered: "\u0016" (22), after : ""
Luckily there is a simple fix. Just change all 
references to the deprecated StringBufferInputStream 
to use ByteArrayInputStream instead. This is in 
parser.java and Py.java. There are only four such 
uses. Here is an example:
//node = parse(new StringBufferInputStream(string),
node = parse(new ByteArrayInputStream(string.getBytes
()),
After I made that change it worked (at least I now 
have a command line prompt and basic commands seem to 
work, I haven't done any serious testing yet).
Cheers,
Dave |  |
 
| Date | User | Action | Args |  | 2008-02-20 17:17:05 | admin | link | issue550200 messages |  | 2008-02-20 17:17:05 | admin | create |  | 
 |