hiro <[EMAIL PROTECTED]> writes: > what I need to do is compare l1 against l2 and return the "position" > of where each object in l1 is in l2 > > ie: pos = 0, 2, 4
Is it September already? from itertools import izip pos = map(dict(izip(l2, count())).__getitem__, l1) Heh heh heh. -- http://mail.python.org/mailman/listinfo/python-list