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
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
def __init__(self, *args): AbstractRangeRepr.__init__(self, *args) self.ll_newrange = ll_newrange self.ll_newrangest = ll_newrangest