Apr-24-2017, 06:26 AM
i want to call a function and capture its print() output. so i was thinking to use the StringIO class. but when the function is ending and closes its output, StringIO destructs (whereas a real file would have its buffers flushed and be saved. i am looking for a better way to read the print output of the function after it does the close.
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.