cypy/data.py
def index(self, item):
        """ Return the index of the given item.
        """
        if isinstance(item, integer_types):
            if 0 <= item < len(self.__keys):
                return item
            raise IndexError(item)
        else:
            try:
                return self.__keys.index(item)
            except ValueError:
                raise KeyError(item)
 Return the index of the given item.
        
Return the index of the given item.
Return the index of the given item .
def index(self, item):
        if isinstance(item, integer_types):
            if 0 <= item < len(self.__keys):
                return item
            raise IndexError(item)
        else:
            try:
                return self.__keys.index(item)
            except ValueError:
                raise KeyError(item)
def index ( self , item ) : if isinstance ( item , integer_types ) : if 0 <= item < len ( self . __keys ) : return item raise IndexError ( item ) else : try : return self . __keys . index ( item ) except ValueError : raise KeyError ( item )
Return the index of the given item.
Return the index of the given item .
""" Return the index of the given item.
        """
self
item