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
5db6fa69
Commit
5db6fa69
authored
Dec 10, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added documentation for str.decode().
This closes SF bug #490823.
parent
6221d2d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
Doc/lib/libstdtypes.tex
Doc/lib/libstdtypes.tex
+10
-0
No files found.
Doc/lib/libstdtypes.tex
View file @
5db6fa69
...
...
@@ -502,6 +502,16 @@ S\code{[\var{start}:\var{end}]}. Optional arguments \var{start} and
\var
{
end
}
are interpreted as in slice notation.
\end{methoddesc}
\begin{methoddesc}
[string]
{
decode
}{
\optional
{
encoding
\optional
{
, errors
}}}
Decodes the string using the codec registered for
\var
{
encoding
}
.
\var
{
encoding
}
defaults to the default string encoding.
\var
{
errors
}
may be given to set a different error handling scheme. The default is
\code
{
'strict'
}
, meaning that encoding errors raise
\exception
{
ValueError
}
. Other possible values are
\code
{
'ignore'
}
and
\code
{
replace'
}
.
\versionadded
{
2.2
}
\end{methoddesc}
\begin{methoddesc}
[string]
{
encode
}{
\optional
{
encoding
\optional
{
,errors
}}}
Return an encoded version of the string. Default encoding is the current
default string encoding.
\var
{
errors
}
may be given to set a different
...
...
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