diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-07-20 20:57:30 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-07-20 20:57:30 +0000 |
commit | 3a4fd7e82ca5b200e7b7eeb92343e32b4e8891b6 (patch) | |
tree | 7c1998757e8580d2fa4a9869329428661d86e7a4 /numpy/core/src | |
parent | 622701d2159a7d25153db1bfc270d4b710c0eaa1 (diff) | |
download | numpy-3a4fd7e82ca5b200e7b7eeb92343e32b4e8891b6.tar.gz |
Add more documentation. Fix #99
Diffstat (limited to 'numpy/core/src')
-rw-r--r-- | numpy/core/src/scalartypes.inc.src | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/src/scalartypes.inc.src b/numpy/core/src/scalartypes.inc.src index fedce2d71..51eb74d40 100644 --- a/numpy/core/src/scalartypes.inc.src +++ b/numpy/core/src/scalartypes.inc.src @@ -1689,6 +1689,7 @@ object_arrtype_dealloc(PyObject *v) sup = (PyTypeObject *)PyTuple_GET_ITEM(type->tp_bases, num); \ ret = sup->tp_new(type, args, kwds); \ if (ret) return ret; \ + if (PyTuple_GET_SIZE(args)!=1) return NULL; \ PyErr_Clear(); \ /* now do default conversion */ \ } |