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
14fb2a56
Commit
14fb2a56
authored
Nov 19, 2002
by
Walter Dörwald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document additional error handling names available through PEP 293.
parent
69f2b46d
Changes
1
Hide 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 @
14fb2a56
...
...
@@ -45,9 +45,13 @@ return a tuple of functions \code{(\var{encoder}, \var{decoder}, \var{stream_rea
Possible values for errors are
\code
{
'strict'
}
(raise an exception
in case of an encoding error),
\code
{
'replace'
}
(replace malformed
data with a suitable replacement marker, such as
\character
{
?
}
)
and
data with a suitable replacement marker, such as
\character
{
?
}
)
,
\code
{
'ignore'
}
(ignore malformed data and continue without further
notice).
notice),
\code
{
'xmlcharrefreplace'
}
(replace with the appropriate XML
character reference (for encoding only)) and
\code
{
'backslashreplace'
}
(replace with backslashed escape sequences (for encoding only)) as
well as any other error handling name defined via
\function
{
register
_
error()
}
.
In case a search function cannot find a given encoding, it should
return
\code
{
None
}
.
...
...
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