summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.4.rst
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2013-10-13 14:55:46 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2013-10-13 14:55:46 (GMT)
commite206b6e10ef051da924769ab0b449f0932c1a344 (patch)
tree984834a487f9aa6af2931d39b7284027f80bfa11 /Doc/whatsnew/3.4.rst
parent5983258bf238367e621cae346fce883f934a07a1 (diff)
parent6cb2b5b1e1ded4c10e305e493e016a7ccf0275cd (diff)
downloadcpython-e206b6e10ef051da924769ab0b449f0932c1a344.zip
cpython-e206b6e10ef051da924769ab0b449f0932c1a344.tar.gz
cpython-e206b6e10ef051da924769ab0b449f0932c1a344.tar.bz2
Issue #17827: document codecs.encode and codecs.decode
- Merge from 3.3 - Added to What's New since these are more important in 3.x, as the bytes<->bytes and str<->str codecs don't fit the text model convenience methods in 3.x the way they did the basestring<->basestring methods in the 2.x text model - Included under Library in Misc/NEWS for the same reason
Diffstat (limited to 'Doc/whatsnew/3.4.rst')
-rw-r--r--Doc/whatsnew/3.4.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
index 4927b66..5e26630 100644
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -197,6 +197,19 @@ The :meth:`~aifc.getparams` method now returns a namedtuple rather than a
plain tuple. (Contributed by Claudiu Popa in :issue:`17818`.)
+codecs
+------
+
+The :meth:`codecs.encode` and :meth:`codecs.decode` convenience functions are
+now properly documented. These functions have existed in the :mod:`codecs`
+module since ~2004, but were previously only discoverable through runtime
+introspection.
+
+Unlike the convenience methods on :class:`str`, :class:`bytes` and
+:class:`bytearray`, these convenience functions support arbitrary codecs,
+rather than being limited to Unicode text encodings.
+
+
colorsys
--------