From: Samuele P. <ped...@bl...> - 2003-07-15 13:38:32
|
At 14:49 15.07.2003 +0200, =C4L/EAB wrote: >Hi all again, > >it looks like the problem I have is related to the size of the data=20 >returned from the PythonInterpreter#exec() call. The following script > >def listLines(num): > for i in range(num): > print i, "01234567890123456789012345678901234567890123456789" > >works fine for num equal 10 but listLines(20) does not return! > >What is the best way around this limitation?? > >Thanks! pipes are supposed to be written to and read from different threads,=20 there's a buffer, when the buffer is full writes block. a ByteArrayOutputStream or CharArrayWriter maybe be a simpler solution. regards. |