diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-09-15 00:20:47 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-09-15 00:20:47 +0000 |
commit | 7257a82db2316aaf815cc65f045e8ea7e2dc5861 (patch) | |
tree | 6f79a142d5c3e6e19fc8074bd74361b1c5b2c5ac /scipy/base/src/arrayobject.c | |
parent | 4bea674fd9a5bfa5f7ee14a5fec164a9d84b657c (diff) | |
download | numpy-7257a82db2316aaf815cc65f045e8ea7e2dc5861.tar.gz |
Fixing added Numeric
Diffstat (limited to 'scipy/base/src/arrayobject.c')
-rw-r--r-- | scipy/base/src/arrayobject.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scipy/base/src/arrayobject.c b/scipy/base/src/arrayobject.c index e4e033389..7e90358da 100644 --- a/scipy/base/src/arrayobject.c +++ b/scipy/base/src/arrayobject.c @@ -5181,7 +5181,9 @@ PyArray_FromAny(PyObject *op, PyArray_Typecode *typecode, int min_depth, /* This is a quick wrapper around PyArray_FromAny(op, NULL, 0, 0, 0) */ /* that special cases Arrays and PyArray_Scalars up front */ -/* it also decrefs op if any conversion needs to take place +/* It steals a reference to the object */ + +/* Because it decrefs op if any conversion needs to take place -- so it can be used like PyArray_EnsureArray(some_function(...)) */ static PyObject * |