[Numpy-svn] r8190 - trunk/numpy/core/src/multiarray

numpy-svn@scip... numpy-svn@scip...
Sat Feb 20 12:20:47 CST 2010


Author: ptvirtan
Date: 2010-02-20 12:20:47 -0600 (Sat, 20 Feb 2010)
New Revision: 8190

Modified:
   trunk/numpy/core/src/multiarray/ucsnarrow.c
Log:
3K: BUG: core: fix ucsnarrow.c:MyPyUnicode_New to work correctly on Py3

Modified: trunk/numpy/core/src/multiarray/ucsnarrow.c
===================================================================
--- trunk/numpy/core/src/multiarray/ucsnarrow.c	2010-02-20 18:20:27 UTC (rev 8189)
+++ trunk/numpy/core/src/multiarray/ucsnarrow.c	2010-02-20 18:20:47 UTC (rev 8190)
@@ -102,6 +102,9 @@
     unicode->length = length;
     unicode->hash = -1;
     unicode->defenc = NULL;
+#if defined(NPY_PY3K)
+    unicode->state = 0; /* Not interned */
+#endif
     return (PyObject *)unicode;
 }
 



More information about the Numpy-svn mailing list