

def __getitem__(self, key):
    'index access returns DirectView multiplexer objects\n        \n        Must be int, slice, or list/tuple/xrange of ints'
    if (not isinstance(self, (int, slice, tuple, list, xrange))):
        raise TypeError(('key by int/slice/iterable of ints only, not %s' % type(key)))
    else:
        return self.direct_view(key)

dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/client/client.py Client.__getitem__/VarMisuse@19/64 `key`->`self`