]> granicus.if.org Git - python/commit
Replace _PyUnicode_READY_REPLACE() and _PyUnicode_ReadyReplace() with unicode_ready()
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 22 Nov 2011 00:22:34 +0000 (01:22 +0100)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 22 Nov 2011 00:22:34 +0000 (01:22 +0100)
commitd3df8ab3779f682fc2319077c2c422acc8430c02
treede733dd203fa83ad576e2284d3aaddf91c862d9c
parentc814a38f3f00933f78115f71db284d620f014b53
Replace _PyUnicode_READY_REPLACE() and _PyUnicode_ReadyReplace() with unicode_ready()

 * unicode_ready() has a simpler API
 * try to reuse unicode_empty and latin1_char singleton everywhere
 * Fix a reference leak in _PyUnicode_TranslateCharmap()
 * PyUnicode_InternInPlace() doesn't try to get a singleton anymore, to avoid
   having to handle a failure
Objects/unicodeobject.c