diff options
| author | Guido van Rossum <guido@python.org> | 1997-07-17 16:29:04 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1997-07-17 16:29:04 +0000 |
| commit | cf40d1b7ccca169596258387225ef904ebfbbcb9 (patch) | |
| tree | 6e17c0de86b07f0040f66896719940ef53c3c782 /Doc/lib | |
| parent | 35504b0b2e9e0e9e3608d99622c68bbc09a856d2 (diff) | |
| download | cpython-cf40d1b7ccca169596258387225ef904ebfbbcb9.tar.gz | |
Note that getvalue() must be called before close().
Diffstat (limited to 'Doc/lib')
| -rw-r--r-- | Doc/lib/libstrio.tex | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/lib/libstrio.tex b/Doc/lib/libstrio.tex index 470fda0b1e..1241e185f7 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. |
