diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-06-09 23:52:23 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-06-09 23:52:23 +0000 |
commit | 6768d24e4709c080d0ed5c7dca1f36f759fa8ba2 (patch) | |
tree | f0e96afbee4045aaa1b416a00225d498ac4e1976 /numpy/core/src/arraymethods.c | |
parent | e0bd761dc33d9716be220d6481756aa982599132 (diff) | |
download | numpy-6768d24e4709c080d0ed5c7dca1f36f759fa8ba2.tar.gz |
Add RNG interface and clean up old-interfaces to be separate from newer ones.
Diffstat (limited to 'numpy/core/src/arraymethods.c')
-rw-r--r-- | numpy/core/src/arraymethods.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c index c83aea36e..79235e58c 100644 --- a/numpy/core/src/arraymethods.c +++ b/numpy/core/src/arraymethods.c @@ -548,14 +548,6 @@ array_wraparray(PyArrayObject *self, PyObject *args) return ret; } -/* NO-OP --- just so all subclasses will have one by default. */ -static PyObject * -array_finalize(PyArrayObject *self, PyObject *args) -{ - Py_INCREF(Py_None); - return Py_None; -} - static char doc_array_getarray[] = "m.__array__(|dtype) just returns either a new reference to self if dtype is not given or a new array of provided data type if dtype is different from the current dtype of the array."; @@ -1620,9 +1612,6 @@ static PyMethodDef array_methods[] = { /* for subtypes */ {"__array__", (PyCFunction)array_getarray, 1, doc_array_getarray}, {"__array_wrap__", (PyCFunction)array_wraparray, 1, doc_wraparray}, - /* default version so it is found... -- only used for subclasses */ - {"__array_finalize__", (PyCFunction)array_finalize, 1, NULL}, - /* for the copy module */ {"__copy__", (PyCFunction)array_copy, 1, doc_copy}, |