2010/3/5 Rolando Espinoza La Fuente <[email protected]>: [...] > diff = [] > > for j in range(max(len(a), len(b))): > if not getitem(a, j) == getitem(b, j): > diff.append(j)
Esto se podría simplificar a
diff = [j for j in range(max(len(a), len(b)))
if not getitem(a, j) == getitem(b, j)]
Rolando
_______________________________________________
Python-es mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/
