full-kilobyte-93429
04/25/2016, 9:06 PMgetvalue
after close
, but the content
saved by the earlier getvalue
call should still be valid, that's what i read
# Retrieve file contents -- this will be
# 'First line.\nSecond line.\n'
contents = output.getvalue()
# Close object and discard memory buffer --
# .getvalue() will now raise an exception.
output.close()