• Marc-André Lemburg's avatar
    Move the codec decode type checks to bytes/bytearray.decode(). · b02358e1
    Marc-André Lemburg authored
    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.
    b02358e1
punycode.py 6.74 KB