]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Optimize _PyUnicode_AsKind() for UCS1->UCS4 and UCS2->UCS4
authorVictor Stinner <victor.stinner@haypocalc.com>
Sat, 1 Oct 2011 23:00:40 +0000 (01:00 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sat, 1 Oct 2011 23:00:40 +0000 (01:00 +0200)
commitbc603d12b7f7db959878068de65e623298a7eae3
treee9ca3e82362d54e8c8b28cfb8b155e47c7e0682e
parent7a48ff7e068c1f292a151d3778586ec2050196e6
Optimize _PyUnicode_AsKind() for UCS1->UCS4 and UCS2->UCS4

 * Ensure that the input string is ready
 * Raise a ValueError instead of of a fatal error
Objects/unicodeobject.c