diff options
author | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:20:47 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2010-02-20 18:20:47 +0000 |
commit | 212fc25e16b8643f8653a66f5282cee304dc7653 (patch) | |
tree | a1afcc9a93de2f60d43a2284a3906b85eb6a7e4b /numpy | |
parent | 57224077fecbc3f43b55966ed60a317c1b5a447b (diff) | |
download | numpy-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.c | 3 |
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; } |