summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-01-08 05:50:36 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-01-08 05:50:36 +0000
commit389ccca99b4b04a00dabdda5793cc8bc6f2f572f (patch)
tree25b125db3fa43619eeb072d925756d66fda827d1
parentb96a71d9267888f989efab50962eda1c19ad61ff (diff)
downloadnumpy-389ccca99b4b04a00dabdda5793cc8bc6f2f572f.tar.gz
Merged revisions 4677-4704 from http://svn.scipy.org/svn/numpy/trunk
-rw-r--r--numpy/core/src/scalartypes.inc.src1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/src/scalartypes.inc.src b/numpy/core/src/scalartypes.inc.src
index d3accce22..5e74cb0d6 100644
--- a/numpy/core/src/scalartypes.inc.src
+++ b/numpy/core/src/scalartypes.inc.src
@@ -863,6 +863,7 @@ gentype_interface_get(PyObject *self)
arr = (PyArrayObject *)PyArray_FromScalar(self, NULL);
if (arr == NULL) return NULL;
inter = PyObject_GetAttrString((PyObject *)arr, "__array_interface__");
+ if (inter != NULL) PyDict_SetItemString(inter, "__ref", (PyObject *)arr);
Py_DECREF(arr);
return inter;
}