]> granicus.if.org Git - python/commitdiff
Note that getvalue() must be called before close().
authorGuido van Rossum <guido@python.org>
Thu, 17 Jul 1997 16:29:04 +0000 (16:29 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 17 Jul 1997 16:29:04 +0000 (16:29 +0000)
Doc/lib/libstrio.tex
Doc/libstrio.tex

index 470fda0b1e1c3b20bbc443a4e5ce812a492a455e..1241e185f7c3c7236bd139d2d9bea05f8aa9414b 100644 (file)
@@ -1,4 +1,5 @@
 \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.
index 470fda0b1e1c3b20bbc443a4e5ce812a492a455e..1241e185f7c3c7236bd139d2d9bea05f8aa9414b 100644 (file)
@@ -1,4 +1,5 @@
 \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.