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
cf6edf3d
Commit
cf6edf3d
authored
Apr 16, 2002
by
Skip Montanaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added small clarification to the descriptions of encode() and decode()
parent
8558aa01
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Doc/lib/libcodecs.tex
Doc/lib/libcodecs.tex
+6
-2
No files found.
Doc/lib/libcodecs.tex
View file @
cf6edf3d
...
...
@@ -201,7 +201,10 @@ function interfaces of the stateless encoder and decoder:
\begin{methoddesc}
{
encode
}{
input
\optional
{
, errors
}}
Encodes the object
\var
{
input
}
and returns a tuple (output object,
length consumed).
length consumed). While codecs are not restricted to use with Unicode, in
a Unicode context, encoding converts a Unicode object to a plain string
using a particular character set encoding (e.g.,
\code
{
cp1252
}
or
\code
{
iso-8859-1
}
).
\var
{
errors
}
defines the error handling to apply. It defaults to
\code
{
'strict'
}
handling.
...
...
@@ -216,7 +219,8 @@ function interfaces of the stateless encoder and decoder:
\begin{methoddesc}
{
decode
}{
input
\optional
{
, errors
}}
Decodes the object
\var
{
input
}
and returns a tuple (output object,
length consumed).
length consumed). In a Unicode context, decoding converts a plain string
encoded using a particular character set encoding to a Unicode object.
\var
{
input
}
must be an object which provides the
\code
{
bf
_
getreadbuf
}
buffer slot. Python strings, buffer objects and memory mapped files
...
...
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