Commit 118ee968 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Fixed error in explanation of codec decode_func pointed out by Gregg Hauser,

   and rewrote paragraph a bit.
parent 8b2e4e89
...@@ -137,10 +137,11 @@ is an 8-bit string containing a portion (perhaps all) of the Unicode ...@@ -137,10 +137,11 @@ is an 8-bit string containing a portion (perhaps all) of the Unicode
string converted into the given encoding, and \var{length} tells you string converted into the given encoding, and \var{length} tells you
how much of the Unicode string was converted. how much of the Unicode string was converted.
\item \var{decode_func} is the mirror of \var{encode_func}, \item \var{decode_func} is the opposite of \var{encode_func}, taking
taking a Unicode string and an 8-bit string and returning a 2-tuple \code{(\var{ustring},
returns a 2-tuple \code{(\var{ustring}, \var{length})} containing a Unicode string \var{length})}, consisting of the resulting Unicode string
and \var{length} telling you how much of the string was consumed. \var{ustring} and the integer \var{length} telling how much of the
string was consumed.
\item \var{stream_reader} is a class that supports decoding input from \item \var{stream_reader} is a class that supports decoding input from
a stream. \var{stream_reader(\var{file_obj})} returns an object that a stream. \var{stream_reader(\var{file_obj})} returns an object that
...@@ -1042,8 +1043,8 @@ these modules. ...@@ -1042,8 +1043,8 @@ these modules.
\section{Acknowledgements} \section{Acknowledgements}
The authors would like to thank the following people for offering The authors would like to thank the following people for offering
suggestions on drafts of this article: Mark Hammond, Fredrik Lundh, suggestions on drafts of this article: Mark Hammond, Gregg Hauser,
Detlef Lannert, Skip Montanaro, Vladimir Marangozov, Guido van Rossum, Fredrik Lundh, Detlef Lannert, Skip Montanaro, Vladimir Marangozov,
and Neil Schemenauer. Guido van Rossum, and Neil Schemenauer.
\end{document} \end{document}
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