def _find_slot(self, j, k):
    'Search for key k in bucket at index j.\n\n        Return (success, index) tuple, described as follows:\n        If match was found, success is True and index denotes its location.\n        If no match found, success is False and index denotes first available slot.\n        '
    firstAvail = None
    while True:
        if self._is_available(j):
            if (firstAvail is None):
                firstAvail = j
            if (self._table[j] is None):
                return (False, firstAvail)
        elif (k == self._table[j]._key):
            return (True, j)
        j = ((j + 1) % len(self._table))
Search for key k in bucket at index j.

Return (success, index) tuple, described as follows:
If match was found, success is True and index denotes its location.
If no match found, success is False and index denotes first available slot.
def _find_slot(self, j, k):
    'Search for key k in bucket at index j.\n\n        Return (success, index) tuple, described as follows:\n        If match was found, success is True and index denotes its location.\n        If no match found, success is False and index denotes first available slot.\n        '
    firstAvail = None
    while True:
        if self._is_available(j):
            if (firstAvail is None):
                firstAvail = j
            if (self._table[j] is None):
                return (False, firstAvail)
        elif (k == self._table[j]._key):
            return (True, j)
        j = ((j + 1) % len(self._table))