diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-02 01:03:14 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-03-02 01:03:14 (GMT) |
commit | a5c68c3cb7bc5068833742dc10a3cd5a19e69e12 (patch) | |
tree | a35feeaad912317ffb10c797c95b4e08bbd1b647 /Lib/code.py | |
parent | f3fd733f928752c9e35f8f5141a54cd21c0993b5 (diff) | |
download | cpython-a5c68c3cb7bc5068833742dc10a3cd5a19e69e12.zip cpython-a5c68c3cb7bc5068833742dc10a3cd5a19e69e12.tar.gz cpython-a5c68c3cb7bc5068833742dc10a3cd5a19e69e12.tar.bz2 |
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).
Diffstat (limited to 'Lib/code.py')
0 files changed, 0 insertions, 0 deletions