summaryrefslogtreecommitdiff
path: root/Objects/codeobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-12-12 00:01:39 +0100
committerVictor Stinner <victor.stinner@haypocalc.com>2011-12-12 00:01:39 +0100
commit488fa49acffda76a6a81d3a14f85f2c65496de54 (patch)
tree8702ad6e24ca25e5b15027e3276257758235a434 /Objects/codeobject.c
parent24c74be9a3b6b10dcd153d1c214013a7fd43b735 (diff)
downloadcpython-git-488fa49acffda76a6a81d3a14f85f2c65496de54.tar.gz
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 'Objects/codeobject.c')
0 files changed, 0 insertions, 0 deletions