I have a list of tuples, from which I am removing the ith element. Right now I'm doing this with:
map(lambda e: list(e)[:i] + list(e)[(i + 1):], data)
which converts the tuple to a list (twice!) and then slices out the element. The result means that I have lists instead of tuples- but this is perfectly fine. Is there a faster way of doing this, possibly by converting each tuple to a list in a separate map operation?