summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-02-20 18:20:47 +0000
committerPauli Virtanen <pav@iki.fi>2010-02-20 18:20:47 +0000
commit212fc25e16b8643f8653a66f5282cee304dc7653 (patch)
treea1afcc9a93de2f60d43a2284a3906b85eb6a7e4b /numpy
parent57224077fecbc3f43b55966ed60a317c1b5a447b (diff)
downloadnumpy-212fc25e16b8643f8653a66f5282cee304dc7653.tar.gz
3K: BUG: core: fix ucsnarrow.c:MyPyUnicode_New to work correctly on Py3
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/multiarray/ucsnarrow.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/src/multiarray/ucsnarrow.c b/numpy/core/src/multiarray/ucsnarrow.c
index 9400ea0e9..4371c3bc0 100644
--- a/numpy/core/src/multiarray/ucsnarrow.c
+++ b/numpy/core/src/multiarray/ucsnarrow.c
@@ -102,6 +102,9 @@ MyPyUnicode_New(int length)
unicode->length = length;
unicode->hash = -1;
unicode->defenc = NULL;
+#if defined(NPY_PY3K)
+ unicode->state = 0; /* Not interned */
+#endif
return (PyObject *)unicode;
}