diff --git a/Lib/avariable.py b/Lib/avariable.py index f39e7e05..1e99fe89 100644 --- a/Lib/avariable.py +++ b/Lib/avariable.py @@ -1490,7 +1490,7 @@ def specs2slices(self, speclist, force=None): slicelist = [] for i in range(self.rank()): key = speclist[i] - if isinstance(key, int): # x[i] + if isinstance(key, (int, numpy.int32, numpy.int64)): # x[i] slicelist.append(slice(key, key + 1)) elif isinstance(key, slice): # x[i:j:k] slicelist.append(key)