[Python-Dev] [PATCH] unicode subtypes broken in latest py3k debug builds

Victor Stinner victor.stinner at haypocalc.com
Sat Oct 22 14:05:25 CEST 2011


> the py3k debug build has been broken in Cython's integration tests for a
> couple of weeks now due to a use-after-decref bug. Here's the fix,
> please apply.

Oops, I introduced this bug when I added "check_content" option to 
_PyUnicode_CheckUnicode().

> BTW, is there a reason unicode_subtype_new() copies the buffer of the
> unicode object it just created, instead of just stealing it?

Good question. We can maybe optimize this function.

Victor


More information about the Python-Dev mailing list