summaryrefslogtreecommitdiffstats
path: root/Lib/difflib.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-03-02 01:03:14 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-03-02 01:03:14 (GMT)
commita5c68c3cb7bc5068833742dc10a3cd5a19e69e12 (patch)
treea35feeaad912317ffb10c797c95b4e08bbd1b647 /Lib/difflib.py
parentf3fd733f928752c9e35f8f5141a54cd21c0993b5 (diff)
downloadcpython-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/difflib.py')
0 files changed, 0 insertions, 0 deletions