

def __getitem__(self, args):
    'Creates a bound-command with the given arguments'
    if (not isinstance(args, (tuple, list))):
        args = [args]
    if (not args):
        return self
    else:
        return ConcurrentCommand(*(cmd[args] for cmd in self.commands))

dataset/ETHPy150Open tomerfiliba/plumbum/experiments/parallel.py ConcurrentCommand.__getitem__/original