def __getitem__(self, key):
        if not isinstance(key, (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)
    
    #--------------------------------------------------------------------------
    # Begin public methods
    #--------------------------------------------------------------------------
index access returns DirectView multiplexer objects
dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/client/client.py/Client.__getitem__