Andrew Toulouse wrote: > tokenchecks = [token for regex,token in match_tok until regex.match(s)] > # do whatever from this point forward. > return tokenchecks[-1] This is an abuse of list comprehensions, since you're throwing away the produced list and only keeping the last element. -- Greg