]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Don't check for the maximum character when copying from unicodeobject.c
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 5 Oct 2011 23:45:57 +0000 (01:45 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 5 Oct 2011 23:45:57 +0000 (01:45 +0200)
commitfb9ea8c57eeab6837c830613524c1250488baed1
tree3b4d82d2834361895ae406ffa00bcf6dd1265e85
parent05d1189566c4caa3b2c9b474159a04d0d61364c3
Don't check for the maximum character when copying from unicodeobject.c

 * Create copy_characters() function which doesn't check for the maximum
   character in release mode
 * _PyUnicode_CheckConsistency() is no more static to be able to use it
   in _PyUnicode_FormatAdvanced() (in formatter_unicode.c)
 * _PyUnicode_CheckConsistency() checks the string hash
Include/unicodeobject.h
Objects/unicodeobject.c
Python/formatter_unicode.c