]> granicus.if.org Git - python/commit
Rewrite PyUnicode_Resize()
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 3 Oct 2011 01:52:20 +0000 (03:52 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 3 Oct 2011 01:52:20 +0000 (03:52 +0200)
commitfe226c0d375c221a7ad0c34fda15c5d2c64e0dcc
treee1a2f1709b6c6039be13680a6d42ecdfb3fc4b37
parent829c0adca9cb3f44d491e166f3c2693e08ef51a7
Rewrite PyUnicode_Resize()

 * Rename _PyUnicode_Resize() to unicode_resize()
 * unicode_resize() creates a copy if the string cannot be resized instead
   of failing
 * Optimize resize_copy() for wstr strings
 * Disable temporary resize_inplace()
Objects/unicodeobject.c