[Numpy-svn] r4705 - branches/build_with_scons/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Mon Jan 7 23:50:41 CST 2008


Author: cdavid
Date: 2008-01-07 23:50:36 -0600 (Mon, 07 Jan 2008)
New Revision: 4705

Modified:
   branches/build_with_scons/numpy/core/src/scalartypes.inc.src
Log:
Merged revisions 4677-4704 from http://svn.scipy.org/svn/numpy/trunk



Modified: branches/build_with_scons/numpy/core/src/scalartypes.inc.src
===================================================================
--- branches/build_with_scons/numpy/core/src/scalartypes.inc.src	2008-01-07 21:20:06 UTC (rev 4704)
+++ branches/build_with_scons/numpy/core/src/scalartypes.inc.src	2008-01-08 05:50:36 UTC (rev 4705)
@@ -863,6 +863,7 @@
         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;
 }



More information about the Numpy-svn mailing list