]> granicus.if.org Git - python/commit
Fix PyUnicode_Substring() for start >= length and start > end
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 3 May 2012 00:32:34 +0000 (02:32 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 3 May 2012 00:32:34 +0000 (02:32 +0200)
commit684d5fd42067109f46e94ea3ddab72ebd4e130ee
treee422af086c643d02ff3181177db6451ee23499db
parentb6cd014d75394ca48e6113d614d36ed16fbe7b13
Fix PyUnicode_Substring() for start >= length and start > end

Remove the fast-path for 1-character string: unicode_fromascii() and
_PyUnicode_FromUCS*() now have their own fast-path for 1-character strings.
Objects/unicodeobject.c