A couple of quick questions

Gordon McMillan gmcm at hypernet.com
Tue May 25 00:34:18 EDT 1999


As /F predicted, Nathan wrote:

> new_list = map(lambda x: list[x], indexes)

Nah. 

new_list = map(operator.getitem, [list]*len(indexes), indexes)

which is not only more obscure, but slower, too!
 

- Gordon




More information about the Python-list mailing list