class documentation

class OurRange:

View In Hierarchy

A class that mimics the built-in range class.

Method __getitem__ Return entry at index k (using standard interpretation if negative).
Method __init__ Initialize an OurRange instance.
Method __len__ Return number of entries in the range.
Instance Variable _length Undocumented
Instance Variable _start Undocumented
Instance Variable _step Undocumented
def __getitem__(self, k):

Return entry at index k (using standard interpretation if negative).

def __init__(self, start, stop=None, step=1):

Initialize an OurRange instance.

Semantics are similar to the built-in range class.

def __len__(self):

Return number of entries in the range.

_length =

Undocumented

_start =

Undocumented

_step =

Undocumented