Staging
v0.5.1
https://github.com/python/cpython
Revision 42c2e6ac49b4cca039884eba0ae547e8dd52577a authored by Guido van Rossum on 06 May 1997, 15:59:14 UTC, committed by Guido van Rossum on 06 May 1997, 15:59:14 UTC
1 parent c339753
Raw File
Tip revision: 42c2e6ac49b4cca039884eba0ae547e8dd52577a authored by Guido van Rossum on 06 May 1997, 15:59:14 UTC
Added cStringIO and cPickle to the supported modules.
Tip revision: 42c2e6a
libstrio.tex
\section{Standard Module \sectcode{StringIO}}

\stmodindex{StringIO}

This module implements a file-like class, \code{StringIO},
that reads and writes a string buffer (also known as {\em memory
files}). See the description on file objects for operations.

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.
back to top