Problem with JPython!
ARG3000
snake-or-bear at worldofbeverage.net
Wed Aug 30 13:14:43 EDT 2000
Running the following string
"\nif 1.0 > 2.0:\n\tprint 1.0\nelse:\n\tprint 2.0\n"
using
org.python.util.PythonInterpreter
exec I get result '2.0' printed to stdout. this is what I would expect
Running the same string through eval it bombs.
Is there anything I should be aware of that i'm doing wrong?
I did a byte for byte comparison between the 'working' string which
i'm declaring in class, and 'code' which i'm building from a file...
working Code
10 10
105 105
102 102
32 32
49 49
46 46
48 48
32 32
62 62
32 32
50 50
46 46
48 48
58 58
10 10
9 9
112 112
114 114
105 105
110 110
116 116
32 32
49 49
46 46
48 48
10 10
101 101
108 108
115 115
101 101
58 58
10 10
9 9
112 112
114 114
105 105
110 110
116 116
32 32
50 50
46 46
48 48
10 10
Any pointers would be greatly appreciated, thanks!
More information about the Python-list
mailing list