(Apr-25-2017, 11:19 AM)wavic Wrote: How does it fail?an exception event happens: ValueError: I/O operation on closed file
this is because the called function does a close() on the file passed to it, which is a normal thing to do to indicate the end of data. StringIO is designed wrong. the writer doing a close() should only mean that there is nothing more to write.
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.