(Apr-24-2017, 06:40 AM)Mekire Wrote: Not enough to just redirect stdout?
but how to redirect it back to the caller? what i am doing now is printing to stdout and piping that to another process that reads it. the other way i gave up on was printing to a file and reading it back. either too many processes or too slow when i have 600+ of these. since both parts are in python and one is a called function, there has to a more efficient way.
if there is a way to make StringIO not destroy on .close() that would solve it.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.