Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 72697:78a2374e1d83
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.
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Wed, 05 Oct 2011 00:42:43 +0200 |
| parents | 63ac488538cb |
| children | 5564bcb0035e |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Thu Oct 06 00:32:52 2011 +0800 +++ b/Objects/unicodeobject.c Wed Oct 05 00:42:43 2011 +0200 @@ -46,6 +46,10 @@ #include <windows.h> #endif +#ifdef Py_DEBUG +# define DONT_MAKE_RESULT_READY +#endif + /* Limit for the Unicode object free list */ #define PyUnicode_MAXFREELIST 1024
