diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-07-31 20:17:29 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-07-31 20:17:29 +0000 |
commit | 7d50c63082f0f98ef5391603e2f538f99bcd4d4c (patch) | |
tree | 17e5c738ed9dbe862a796a04b4042d6475309c69 /numpy/lib/index_tricks.py | |
parent | 0bd7d94f96b10781ef8b0c381b295aee41a3458f (diff) | |
download | numpy-7d50c63082f0f98ef5391603e2f538f99bcd4d4c.tar.gz |
Fix ticket #216. Also fix uses of DATA_RENEW so that object arrays will raise an error instead of possibly memory-leak when reference counts aren't freed. Fix uses of longlong to Py_ssize_t and apppropriate FORMAT string.
Diffstat (limited to 'numpy/lib/index_tricks.py')
-rw-r--r-- | numpy/lib/index_tricks.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py index a0900c845..0835a69fd 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -336,6 +336,8 @@ class ndindex(object): """ def __init__(self, *args): + if len(args) == 1 and isinstance(args[0], tuple): + args = args[0] self.nd = len(args) self.ind = [0]*self.nd self.index = 0 |