• Victor Stinner's avatar
    Issue #8923: cache str.encode() result · a5c68c3c
    Victor Stinner authored
    When a string is encoded to UTF-8 in strict mode, the result is cached into the
    object. Examples: str.encode(), str.encode('utf-8'), PyUnicode_AsUTF8String()
    and PyUnicode_AsEncodedString(unicode, "utf-8", NULL).
    a5c68c3c
unicodeobject.c 308 KB