Пример #1
0
 def __init__(self, step, *args):
     self.RANGE = Ptr(GcStruct("range", ("start", Signed), ("stop", Signed),
             adtmeths = {
                 "ll_length":ll_length,
                 "ll_getitem_fast":ll_getitem_fast,
                 "step":step,
             },
             hints = {'immutable': True}))
     self.RANGEITER = Ptr(GcStruct("range", ("next", Signed), ("stop", Signed)))
     AbstractRangeRepr.__init__(self, step, *args)
     self.ll_newrange = ll_newrange
     self.ll_newrangest = ll_newrangest
Пример #2
0
 def __init__(self, step, *args):
     self.RANGE = Ptr(
         GcStruct("range", ("start", Signed), ("stop", Signed),
                  adtmeths={
                      "ll_length": ll_length,
                      "ll_getitem_fast": ll_getitem_fast,
                      "step": step,
                  },
                  hints={'immutable': True}))
     self.RANGEITER = Ptr(
         GcStruct("range", ("next", Signed), ("stop", Signed)))
     AbstractRangeRepr.__init__(self, step, *args)
     self.ll_newrange = ll_newrange
     self.ll_newrangest = ll_newrangest
Пример #3
0
 def __init__(self, *args):
     AbstractRangeRepr.__init__(self, *args)
     self.ll_newrange = ll_newrange
     self.ll_newrangest = ll_newrangest
Пример #4
0
 def __init__(self, *args):
     AbstractRangeRepr.__init__(self, *args)
     self.ll_newrange = ll_newrange
     self.ll_newrangest = ll_newrangest