Staging
v0.5.1
https://github.com/python/cpython
Revision 94ee389308ec9e0e07b3f7a944d5179aba540c5e authored by Serhiy Storchaka on 24 February 2014, 12:43:03 UTC, committed by Serhiy Storchaka on 24 February 2014, 12:43:03 UTC
str.encode, bytes.decode and bytearray.decode now use an
internal API to throw LookupError for known non-text encodings,
rather than attempting the encoding or decoding operation and
then throwing a TypeError for an unexpected output type.

The latter mechanism remains in place for third party non-text
encodings.

Backported changeset d68df99d7a57.
1 parent 20f8728
History
Tip revision: 94ee389308ec9e0e07b3f7a944d5179aba540c5e authored by Serhiy Storchaka on 24 February 2014, 12:43:03 UTC
Issue #19619: Blacklist non-text codecs in method API
Tip revision: 94ee389
File Mode Size
c-api
data
distutils
extending
faq
howto
includes
install
library
reference
tools
tutorial
using
whatsnew
Makefile -rw-r--r-- 6.9 KB
README.txt -rw-r--r-- 5.1 KB
about.rst -rw-r--r-- 1.5 KB
bugs.rst -rw-r--r-- 3.9 KB
conf.py -rw-r--r-- 5.9 KB
contents.rst -rw-r--r-- 415 bytes
copyright.rst -rw-r--r-- 451 bytes
glossary.rst -rw-r--r-- 39.5 KB
license.rst -rw-r--r-- 42.8 KB
make.bat -rw-r--r-- 1.5 KB

README.txt

back to top