Commit cf40d1b7 authored by Guido van Rossum's avatar Guido van Rossum

Note that getvalue() must be called before close().

parent 35504b0b
\section{Standard Module \sectcode{StringIO}}
\label{module-StringIO}
\stmodindex{StringIO}
......@@ -10,5 +11,7 @@ When a \code{StringIO} object is created, it can be initialized
to an existing string by passing the string to the constructor.
If no string is given, the \code{StringIO} will start empty.
The method \code{getvalue()} can be called to retrieve the
entire contents of the ``file'' at any time.
The method \code{getvalue()} can be called to retrieve the entire
contents of the ``file'' at any time before the \code{StringIO}
object's \code{close()} method is called. Calling \code{close()} will
free the memory buffer.
\section{Standard Module \sectcode{StringIO}}
\label{module-StringIO}
\stmodindex{StringIO}
......@@ -10,5 +11,7 @@ When a \code{StringIO} object is created, it can be initialized
to an existing string by passing the string to the constructor.
If no string is given, the \code{StringIO} will start empty.
The method \code{getvalue()} can be called to retrieve the
entire contents of the ``file'' at any time.
The method \code{getvalue()} can be called to retrieve the entire
contents of the ``file'' at any time before the \code{StringIO}
object's \code{close()} method is called. Calling \code{close()} will
free the memory buffer.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment