Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 118ee96

Browse files
committed
Fixed error in explanation of codec decode_func pointed out by Gregg Hauser,
and rewrote paragraph a bit.
1 parent 8b2e4e8 commit 118ee96

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

Doc/whatsnew/whatsnew20.tex

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,11 @@ \section{Unicode}
137137
string converted into the given encoding, and \var{length} tells you
138138
how much of the Unicode string was converted.
139139

140-
\item \var{decode_func} is the mirror of \var{encode_func},
141-
taking a Unicode string and
142-
returns a 2-tuple \code{(\var{ustring}, \var{length})} containing a Unicode string
143-
and \var{length} telling you how much of the string was consumed.
140+
\item \var{decode_func} is the opposite of \var{encode_func}, taking
141+
an 8-bit string and returning a 2-tuple \code{(\var{ustring},
142+
\var{length})}, consisting of the resulting Unicode string
143+
\var{ustring} and the integer \var{length} telling how much of the
144+
string was consumed.
144145

145146
\item \var{stream_reader} is a class that supports decoding input from
146147
a stream. \var{stream_reader(\var{file_obj})} returns an object that
@@ -1042,8 +1043,8 @@ \section{Deleted and Deprecated Modules}
10421043
\section{Acknowledgements}
10431044
10441045
The authors would like to thank the following people for offering
1045-
suggestions on drafts of this article: Mark Hammond, Fredrik Lundh,
1046-
Detlef Lannert, Skip Montanaro, Vladimir Marangozov, Guido van Rossum,
1047-
and Neil Schemenauer.
1046+
suggestions on drafts of this article: Mark Hammond, Gregg Hauser,
1047+
Fredrik Lundh, Detlef Lannert, Skip Montanaro, Vladimir Marangozov,
1048+
Guido van Rossum, and Neil Schemenauer.
10481049
10491050
\end{document}

0 commit comments

Comments
 (0)