diff options
author | Guido van Rossum <guido@python.org> | 1997-07-17 16:29:04 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-07-17 16:29:04 (GMT) |
commit | 5320998da59f4a210b92886f8c1e7a14b03c0804 (patch) | |
tree | 4e846c98b4d4ac814db2b924d17f3169631b6a80 | |
parent | 0fcbe8dde22e23baff801ce78e055511fa213113 (diff) | |
download | cpython-5320998da59f4a210b92886f8c1e7a14b03c0804.zip cpython-5320998da59f4a210b92886f8c1e7a14b03c0804.tar.gz cpython-5320998da59f4a210b92886f8c1e7a14b03c0804.tar.bz2 |
Note that getvalue() must be called before close().
-rw-r--r-- | Doc/lib/libstrio.tex | 7 | ||||
-rw-r--r-- | Doc/libstrio.tex | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/Doc/lib/libstrio.tex b/Doc/lib/libstrio.tex index 470fda0..1241e18 100644 --- a/Doc/lib/libstrio.tex +++ b/Doc/lib/libstrio.tex @@ -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. diff --git a/Doc/libstrio.tex b/Doc/libstrio.tex index 470fda0..1241e18 100644 --- a/Doc/libstrio.tex +++ b/Doc/libstrio.tex @@ -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. |