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
Raw File
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
.bzrignore
ยด.purify
autom4te.cache
config.log
config.cache
config.status
config.status.lineno
db_home
Makefile
buildno
python
build
Makefile.pre
platform
pybuilddir.txt
pyconfig.h
libpython*.a
libpython*.so*
python.exe
python-gdb.py
reflog.txt
tags
TAGS
.gdb_history
Doc/tools/sphinx
Doc/tools/jinja
Doc/tools/jinja2
Doc/tools/pygments
Doc/tools/docutils
Misc/python.pc
Modules/Setup
Modules/Setup.config
Modules/Setup.local
Modules/config.c
Modules/ld_so_aix
Parser/pgen
Lib/test/data/*
Lib/lib2to3/Grammar*.pickle
Lib/lib2to3/PatternGrammar*.pickle
__pycache__
.coverage
coverage/*
htmlcov/*
back to top