(self)
return int(self)
Called whenever an index is needed, such as in slicing
Called whenever an index is needed, such as in slicing
Called whenever an index is needed such as in slicing
def __index__(self):
        """Called whenever an index is needed, such as in slicing"""
        return int(self)
def __index__ ( self ) : return int ( self )