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
Python.asdl -rw-r--r-- 4.5 KB
acceler.c -rw-r--r-- 3.3 KB
asdl.py -rw-r--r-- 10.9 KB
asdl_c.py -rwxr-xr-x 40.8 KB
bitset.c -rw-r--r-- 1.0 KB
firstsets.c -rw-r--r-- 2.8 KB
grammar.c -rw-r--r-- 6.7 KB
grammar1.c -rw-r--r-- 1.3 KB
listnode.c -rw-r--r-- 1.2 KB
metagrammar.c -rw-r--r-- 2.4 KB
myreadline.c -rw-r--r-- 6.0 KB
node.c -rw-r--r-- 4.4 KB
parser.c -rw-r--r-- 11.7 KB
parser.h -rw-r--r-- 1.0 KB
parsetok.c -rw-r--r-- 9.2 KB
parsetok_pgen.c -rw-r--r-- 35 bytes
pgen.c -rw-r--r-- 17.5 KB
pgenmain.c -rw-r--r-- 3.8 KB
printgrammar.c -rw-r--r-- 2.9 KB
spark.py -rw-r--r-- 26.5 KB
tokenizer.c -rw-r--r-- 48.9 KB
tokenizer.h -rw-r--r-- 3.3 KB
tokenizer_pgen.c -rw-r--r-- 36 bytes

back to top