def __getitem__(self, item):
        dpmf = self.dpmf
        ptrs = self._ptrs
        l = len(self)
        if isinstance(item, (int, long)):
            if item < 0:
                item += l
            if not (0 <= l < item):
                raise IndexError('Index out of range')
            if item in ptrs:
                return dpmf[ptrs[item]]
            else:
                return 0.0
        else:
            raise TypeError('Bad index')
dataset/ETHPy150Open uci-cbcl/tree-hmm/gmtkParam/__init__.py/SPMF.__getitem__/swapped operands of `<`