[Python-checkins] cpython (merge 3.3 -> default): (Merge 3.3) _PyUnicode_Writer() now also reuses Unicode singletons:
victor.stinner
python-checkins at python.org
Wed Mar 6 19:29:20 CET 2013
http://hg.python.org/cpython/rev/fa59a85b373f
changeset: 82518:fa59a85b373f
parent: 82515:78a6d68a40aa
parent: 82517:3dd2fa78fb89
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Mar 06 19:29:09 2013 +0100
summary:
(Merge 3.3) _PyUnicode_Writer() now also reuses Unicode singletons:
empty string and latin1 single character
files:
Objects/unicodeobject.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -12821,7 +12821,7 @@
writer->buffer = newbuffer;
}
assert(_PyUnicode_CheckConsistency(writer->buffer, 1));
- return writer->buffer;
+ return unicode_result_ready(writer->buffer);
}
void
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list