Message1495
Jython can't handle strings over 32767 characters....
StringBuffer sb = new StringBuffer();
for (int i = 0; i < 32768; i++) {
sb.append("a");
}
PythonInterpreter pi = new PthonInterpreter();
pi.exec("data = {}");
String x = "data[\"stuff\"] = {\"val\" : \"" + sb + \"}";
pi.exec(x);
When the line, "pi.exec(x)" is execute the following exception occurs:
Exception in thread "main" Traceback (innermost last):
(no code object) at line 0
SyntaxError: ('string constant too large (more than 32767 characters)', ('<string>', 1, 23, ''))
Can this be fixed? |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:45 | admin | link | issue1663711 messages |
2008-02-20 17:17:45 | admin | create | |
|