Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
118ee968
Commit
118ee968
authored
Sep 27, 2000
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed error in explanation of codec decode_func pointed out by Gregg Hauser,
and rewrote paragraph a bit.
parent
8b2e4e89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
Doc/whatsnew/whatsnew20.tex
Doc/whatsnew/whatsnew20.tex
+8
-7
No files found.
Doc/whatsnew/whatsnew20.tex
View file @
118ee968
...
...
@@ -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
how much of the Unicode string was converted.
\item
\var
{
decode
_
func
}
is the mirror of
\var
{
encode
_
func
}
,
taking a Unicode string and
returns a 2-tuple
\code
{
(
\var
{
ustring
}
,
\var
{
length
}
)
}
containing a Unicode string
and
\var
{
length
}
telling you how much of the string was consumed.
\item
\var
{
decode
_
func
}
is the opposite of
\var
{
encode
_
func
}
, taking
an 8-bit string and returning a 2-tuple
\code
{
(
\var
{
ustring
}
,
\var
{
length
}
)
}
, consisting of the resulting Unicode string
\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
a stream.
\var
{
stream
_
reader(
\var
{
file
_
obj
}
)
}
returns an object that
...
...
@@ -1042,8 +1043,8 @@ these modules.
\section
{
Acknowledgements
}
The authors would like to thank the following people for offering
suggestions on drafts of this article: Mark Hammond,
Fredrik Lundh,
Detlef Lannert, Skip Montanaro, Vladimir Marangozov, Guido van Rossum,
and Neil Schemenauer.
suggestions on drafts of this article: Mark Hammond,
Gregg Hauser,
Fredrik Lundh, Detlef Lannert, Skip Montanaro, Vladimir Marangozov,
Guido van Rossum,
and Neil Schemenauer.
\end{document}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment