comparison Python/errors.c @ 87338:d68df99d7a57

Issue #19619: Blacklist non-text codecs in method API 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.
author Nick Coghlan <ncoghlan@gmail.com>
date Fri, 22 Nov 2013 22:39:36 +1000
parents 01c4a0af73cf
children
comparison
equal deleted inserted replaced
87337:90d4153728f6 87338:d68df99d7a57