Commits

Ilya Osadchiy committed 00d149b

numpy: signature per SingleDimSlice class

  • Participants
  • Parent commits cc5eb3a

Comments (0)

Files changed (1)

File pypy/module/micronumpy/interp_numarray.py

             return space.wrap(self.get_concrete().getitem(start))
         else:
             # Slice
-            signature = Signature()
-            res = SingleDimSlice(start, stop, step, slice_length, self, self.signature.transition(signature))
+            res = SingleDimSlice(start, stop, step, slice_length, self, self.signature.transition(SingleDimSlice.static_signature))
             return space.wrap(res)
             
 
 
 class SingleDimSlice(ViewArray):
     _immutable_fields_ = ["start", "stop", "step", "size"]
+    static_signature = Signature()
 
     def __init__(self, start, stop, step, slice_length, parent, signature):
         ViewArray.__init__(self, parent, signature)