commit | fb84b5d48d111121bbc9e1782ddbab361c0bf1a5 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Wed Mar 06 19:29:09 2013 +0100 |
committer | Victor Stinner <victor.stinner@gmail.com> | Wed Mar 06 19:29:09 2013 +0100 |
tree | e303c9fe2aa909c1cac83fe5e6b61dc49b7f6f80 | |
parent | be0c028eb50f64ea69baf612e4d5c21fef875a8f [diff] | |
parent | 2cb16aa3cb31c2c0620df3c806d10782f84c94fb [diff] |
(Merge 3.3) _PyUnicode_Writer() now also reuses Unicode singletons: empty string and latin1 single character
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 2175655..cb93395 100644 --- 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