On Thu, Dec 18, 2008 at 3:10 PM, Michael Hanselmann <han...@google.com> wrote: > 2008/12/18 Guido Trotter <ultrot...@google.com>: >>> + @type rename: list of (old, new) >>> + @param rename: List containing tuples mapping old to new names >> >> I'm wondering... woudn't two lists of the same len (old_names, >> new_names) be a less complex representation for this >> (transmission-serialization wise), or we don't care? :) >> (LGTM for the rest) > > It may be a bit simpler for the transport, but it's harder to use. You > would have to keep track of the index while looping through them and > check whether both lists are of the same length. >
Well, that's just if len(a) != len(b): raise ... and for old,new in zip(old_names, new_names): ... Isn't it? :) thanks, Guido