diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/lib/index_tricks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py index 6a589a299..139883847 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -539,7 +539,7 @@ class ndindex(object): yield () return zerodim_gen() else: - return object.__new__(cls, *shape) + return super(ndindex, cls).__new__(cls) def __init__(self, *shape): x = as_strided(_nx.zeros(1), shape=shape, strides=_nx.zeros_like(shape)) |