summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-04-17 23:02:17 +0200
committerVictor Stinner <victor.stinner@gmail.com>2013-04-17 23:02:17 +0200
commit8b66a0c1cb6cf41b7903a69a150c2c657af5826c (patch)
tree12c93561c337ff8b4c10020bfd4ca8a51bb5a2f0 /Python/pythonrun.c
parenta7e9286aed5960bdc6704cc0de6f2e576f2a01a4 (diff)
downloadcpython-8b66a0c1cb6cf41b7903a69a150c2c657af5826c.tar.gz
Close #17694: Add minimum length to _PyUnicodeWriter
* Add also min_char attribute to _PyUnicodeWriter structure (currently unused) * _PyUnicodeWriter_Init() has no more argument (except the writer itself): min_length and overallocate must be set explicitly * In error handlers, only enable overallocation if the replacement string is longer than 1 character * CJK decoders don't use overallocation anymore * Set min_length, instead of preallocating memory using _PyUnicodeWriter_Prepare(), in many decoders * _PyUnicode_DecodeUnicodeInternal() checks for integer overflow
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions