[issue1943] improved allocation of PyUnicode objects

Adam Olsen report at bugs.python.org
Mon Jan 11 09:08:31 CET 2010


Adam Olsen <rhamph at gmail.com> added the comment:

On Sun, Jan 10, 2010 at 14:59, Marc-Andre Lemburg
<report at bugs.python.org> wrote:
> BTW, I'm not aware of any changes to the PyUnicodeObject by some
> fastsearch implementation. Could you point me to this ?

    /* We allocate one more byte to make sure the string is Ux0000 terminated.
       The overallocation is also used by fastsearch, which assumes that it's
       safe to look at str[length] (without making any assumptions about what
       it contains). */

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1943>
_______________________________________


More information about the Python-bugs-list mailing list