commit | a5c68c3cb7bc5068833742dc10a3cd5a19e69e12 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Wed Mar 02 01:03:14 2011 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Wed Mar 02 01:03:14 2011 +0000 |
tree | a35feeaad912317ffb10c797c95b4e08bbd1b647 | |
parent | f3fd733f928752c9e35f8f5141a54cd21c0993b5 [diff] |
Issue #8923: cache str.encode() result 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).