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
python3dll.c
#include <windows.h>

BOOL WINAPI
DllMain(HINSTANCE hInstDLL,
        DWORD fdwReason,
        LPVOID lpReserved)
{
    return TRUE;
}
back to top