summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2009-12-06 11:59:16 +0000
committerPauli Virtanen <pav@iki.fi>2009-12-06 11:59:16 +0000
commit26c2727b62b5dfd9447e9fd9c41ae92299cc8690 (patch)
tree264610e298ee28bae3f238e58fdd98ce6438434b /numpy/core
parent8e7b7b9eff86eecd8e70b982ee0b5fa38f920fbd (diff)
downloadnumpy-26c2727b62b5dfd9447e9fd9c41ae92299cc8690.tar.gz
3K: bytes are never interned
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/src/multiarray/scalarapi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/src/multiarray/scalarapi.c b/numpy/core/src/multiarray/scalarapi.c
index e6bebd226..40f9a009d 100644
--- a/numpy/core/src/multiarray/scalarapi.c
+++ b/numpy/core/src/multiarray/scalarapi.c
@@ -663,8 +663,10 @@ PyArray_Scalar(void *data, PyArray_Descr *descr, PyObject *base)
if (type_num == PyArray_STRING) {
destptr = PyString_AS_STRING(obj);
((PyStringObject *)obj)->ob_shash = -1;
+#if !defined(NPY_PY3K)
((PyStringObject *)obj)->ob_sstate = \
SSTATE_NOT_INTERNED;
+#endif
memcpy(destptr, data, itemsize);
return obj;
}