diff --git a/Doc/Makefile b/Doc/Makefile index 2407b9b0b83..a244f9e1468 100644 --- a/Doc/Makefile +++ b/Doc/Makefile @@ -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) diff --git a/Doc/lib.tex b/Doc/lib.tex index a7c86d7e701..66c6b0c68d9 100644 --- a/Doc/lib.tex +++ b/Doc/lib.tex @@ -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 diff --git a/Doc/lib/lib.tex b/Doc/lib/lib.tex index a7c86d7e701..66c6b0c68d9 100644 --- a/Doc/lib/lib.tex +++ b/Doc/lib/lib.tex @@ -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 diff --git a/Doc/lib/libstrio.tex b/Doc/lib/libstrio.tex new file mode 100644 index 00000000000..fdf973f5e1c --- /dev/null +++ b/Doc/lib/libstrio.tex @@ -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. diff --git a/Doc/libstrio.tex b/Doc/libstrio.tex new file mode 100644 index 00000000000..fdf973f5e1c --- /dev/null +++ b/Doc/libstrio.tex @@ -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.