Benjamin, > Use the built-in slice. Perfect!! That's exactly what I was looking for - I didn't know this object existed. > What's wrong with unpacking the tuple? I'm extracting fields from a huge, multi-gig log file. I was trying to avoid doing something like myString[ myTuple[ 0 ]: myTuple[ 1 ] ) millions of times in a loop.
Thank you! Malcolm
-- http://mail.python.org/mailman/listinfo/python-list