Added (minimal) StringIO docs.

This commit is contained in:
Guido van Rossum 1997-03-03 16:01:21 +00:00
parent 20e4210ec4
commit cda3d7d0e7
5 changed files with 31 additions and 1 deletions

View File

@ -113,7 +113,7 @@ LIBFILES = lib.tex \
libxdrlib.tex libimghdr.tex \ libxdrlib.tex libimghdr.tex \
librestricted.tex librexec.tex libbastion.tex \ librestricted.tex librexec.tex libbastion.tex \
libformatter.tex liboperator.tex libsoundex.tex libresource.tex \ libformatter.tex liboperator.tex libsoundex.tex libresource.tex \
libstat.tex libstat.tex libstrio.tex
# Library document # Library document
lib.dvi: $(LIBFILES) lib.dvi: $(LIBFILES)

View File

@ -93,6 +93,7 @@ to Python and how to embed it in other applications.
\input{libregex} \input{libregex}
\input{libregsub} \input{libregsub}
\input{libstruct} \input{libstruct}
\input{libstrio}
\input{libsoundex} \input{libsoundex}
\input{libmisc} % Miscellaneous Services \input{libmisc} % Miscellaneous Services

View File

@ -93,6 +93,7 @@ to Python and how to embed it in other applications.
\input{libregex} \input{libregex}
\input{libregsub} \input{libregsub}
\input{libstruct} \input{libstruct}
\input{libstrio}
\input{libsoundex} \input{libsoundex}
\input{libmisc} % Miscellaneous Services \input{libmisc} % Miscellaneous Services

14
Doc/lib/libstrio.tex Normal file
View File

@ -0,0 +1,14 @@
\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.

14
Doc/libstrio.tex Normal file
View File

@ -0,0 +1,14 @@
\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.