summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-12-11 23:01:39 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-12-11 23:01:39 (GMT)
commit488fa49acffda76a6a81d3a14f85f2c65496de54 (patch)
tree8702ad6e24ca25e5b15027e3276257758235a434 /Include
parent24c74be9a3b6b10dcd153d1c214013a7fd43b735 (diff)
downloadcpython-488fa49acffda76a6a81d3a14f85f2c65496de54.zip
cpython-488fa49acffda76a6a81d3a14f85f2c65496de54.tar.gz
cpython-488fa49acffda76a6a81d3a14f85f2c65496de54.tar.bz2
Rewrite PyUnicode_Append(); unicode_modifiable() is more strict
* Rename unicode_resizable() to unicode_modifiable() * Rename _PyUnicode_Dirty() to unicode_check_modifiable() to make it clear that the function is private * Inline PyUnicode_Concat() and unicode_append_inplace() in PyUnicode_Append() to simplify the code * unicode_modifiable() return 0 if the hash has been computed or if the string is not an exact unicode string * Remove _PyUnicode_DIRTY(): no need to reset the hash anymore, because if the hash has already been computed, you cannot modify a string inplace anymore * PyUnicode_Concat() checks for integer overflow
Diffstat (limited to 'Include')
0 files changed, 0 insertions, 0 deletions