from their example, it's illegal to call `getvalue...
# development
f
from their example, it's illegal to call
getvalue
after
close
, but the
content
saved by the earlier
getvalue
call should still be valid, that's what i read
Copy code
# 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()