Kaydet (Commit) cda3d7d0 authored tarafından Guido van Rossum's avatar Guido van Rossum

Added (minimal) StringIO docs.

üst 20e4210e
......@@ -113,7 +113,7 @@ LIBFILES = lib.tex \
libxdrlib.tex libimghdr.tex \
librestricted.tex librexec.tex libbastion.tex \
libformatter.tex liboperator.tex libsoundex.tex libresource.tex \
libstat.tex
libstat.tex libstrio.tex
# Library document
lib.dvi: $(LIBFILES)
......
......@@ -93,6 +93,7 @@ to Python and how to embed it in other applications.
\input{libregex}
\input{libregsub}
\input{libstruct}
\input{libstrio}
\input{libsoundex}
\input{libmisc} % Miscellaneous Services
......
......@@ -93,6 +93,7 @@ to Python and how to embed it in other applications.
\input{libregex}
\input{libregsub}
\input{libstruct}
\input{libstrio}
\input{libsoundex}
\input{libmisc} % Miscellaneous Services
......
\section{Standard Module \sectcode{StringIO}}
\stmodindex{StringIO}
This module implements a file-like class, \code{StringIO},
that read and write 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 at any time to return the
contents of the entire ``file'' at any time.
\section{Standard Module \sectcode{StringIO}}
\stmodindex{StringIO}
This module implements a file-like class, \code{StringIO},
that read and write 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 at any time to return the
contents of the entire ``file'' at any time.
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