Indexing list of lists

Hilde Roth hildegarde_roth at yahoo.de
Tue Sep 23 15:49:05 CEST 2003


> So you want l[seq] to be a shorter way for current
> 
> [l[i] for i in seq]
> 
> Which is pythonic as it is explicit, easier to read if the code is not
> written by you yesterday

But consistency is pythonic, too ;-) and, as I pointed in another message,
if you accept l[sequence_abstraction], why not l[actual_sequence]??

Hilde




More information about the Python-list mailing list