[Numpy-svn] r3143 - trunk/numpy/core/src
numpy-svn at scipy.org
numpy-svn at scipy.org
Mon Sep 11 19:31:22 EDT 2006
Author: oliphant
Date: 2006-09-11 18:31:20 -0500 (Mon, 11 Sep 2006)
New Revision: 3143
Modified:
trunk/numpy/core/src/ufuncobject.c
Log:
Add some comments about grabbing the CObject implementation.
Modified: trunk/numpy/core/src/ufuncobject.c
===================================================================
--- trunk/numpy/core/src/ufuncobject.c 2006-09-11 23:22:54 UTC (rev 3142)
+++ trunk/numpy/core/src/ufuncobject.c 2006-09-11 23:31:20 UTC (rev 3143)
@@ -3103,6 +3103,15 @@
return (PyObject *)self;
}
+/* This is the first-part of the CObject structure.
+
+ I don't think this will change, but if it should, then
+ this needs to be fixed. The exposed C-API was insufficient
+ because I needed to replace the pointer and it wouldn't
+ let me with a destructor set (even though it works fine
+ with the destructor).
+ */
+
typedef struct {
PyObject_HEAD
void *c_obj;
@@ -3156,7 +3165,6 @@
int i;
int *newtypes=NULL;
-
descr=PyArray_DescrFromType(usertype);
if ((usertype < PyArray_USERDEF) || (descr==NULL)) {
PyErr_SetString(PyExc_TypeError,
More information about the Numpy-svn
mailing list