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
07b16159
Commit
07b16159
authored
May 14, 2014
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #21488: Fix doc of codecs.decode() and codecs.encode(), no keyword support.
Patch written by Brad Aylsworth.
parent
0eb9ee97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
Doc/library/codecs.rst
Doc/library/codecs.rst
+8
-6
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Doc/library/codecs.rst
View file @
07b16159
...
...
@@ -23,24 +23,26 @@ manages the codec and error handling lookup process.
It defines the following functions:
.. function:: encode(obj,
encoding='ascii', errors='strict'
)
.. function:: encode(obj,
[encoding[, errors]]
)
Encodes *obj* using the codec registered for *encoding*.
Encodes *obj* using the codec registered for *encoding*. The default
encoding is ``'ascii'``.
*Errors* may be given to set the desired error handling scheme. The
default error handler is ``
strict
`` meaning that encoding errors raise
default error handler is ``
'strict'
`` meaning that encoding errors raise
:exc:`ValueError` (or a more codec specific subclass, such as
:exc:`UnicodeEncodeError`). Refer to :ref:`codec-base-classes` for more
information on codec error handling.
.. versionadded:: 2.4
.. function:: decode(obj,
encoding='ascii', errors='strict'
)
.. function:: decode(obj,
[encoding[, errors]]
)
Decodes *obj* using the codec registered for *encoding*.
Decodes *obj* using the codec registered for *encoding*. The default
encoding is ``'ascii'``.
*Errors* may be given to set the desired error handling scheme. The
default error handler is ``
strict
`` meaning that decoding errors raise
default error handler is ``
'strict'
`` meaning that decoding errors raise
:exc:`ValueError` (or a more codec specific subclass, such as
:exc:`UnicodeDecodeError`). Refer to :ref:`codec-base-classes` for more
information on codec error handling.
...
...
Misc/ACKS
View file @
07b16159
...
...
@@ -56,6 +56,7 @@ David Ascher
Chris AtLee
Aymeric Augustin
John Aycock
Brad Aylsworth
Donovan Baarda
Arne Babenhauserheide
Attila Babo
...
...
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