]> granicus.if.org Git - python/commit
Move the codec decode type checks to bytes/bytearray.decode().
authorMarc-André Lemburg <mal@egenix.com>
Fri, 6 Jun 2008 12:18:17 +0000 (12:18 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Fri, 6 Jun 2008 12:18:17 +0000 (12:18 +0000)
commitb2750b5d334e9c8d262009069bce41c15803eca0
tree2c501adf96b37d3afbc32e6fdc344fade85cf3d5
parent4efb518185d32d573ff65f11b94c6031340a018a
Move the codec decode type checks to bytes/bytearray.decode().

Use faster PyUnicode_FromEncodedObject() for bytes/bytearray.decode().

Add new PyCodec_KnownEncoding() API.

Add new PyUnicode_AsDecodedUnicode() and PyUnicode_AsEncodedUnicode() APIs.

Add missing PyUnicode_AsDecodedObject() to unicodeobject.h

Fix punicode codec to also work on memoryviews.
Include/codecs.h
Include/unicodeobject.h
Lib/encodings/punycode.py
Objects/bytearrayobject.c
Objects/bytesobject.c
Objects/unicodeobject.c
Python/codecs.c
Python/pythonrun.c