unicodeobject.c doesn't make output strings ready in debug mode

Try to only create non ready strings in debug mode to ensure that all functions
(not only in unicodeobject.c, everywhere) make input strings ready.
This commit is contained in:
Victor Stinner 2011-10-05 00:42:43 +02:00
parent 55a190fbbd
commit ce5faf673e

View file

@ -46,6 +46,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <windows.h>
#endif
#ifdef Py_DEBUG
# define DONT_MAKE_RESULT_READY
#endif
/* Limit for the Unicode object free list */
#define PyUnicode_MAXFREELIST 1024