good way to do side effects on lists?

Danny Shevitz shevitz at lanl.gov
Thu Sep 23 01:19:31 CEST 2004


Howdy,

A minor stylistic question: Is there a better way to do:

for thing is myList:
    myFunc(thing)

map is close, but returns a list, which is wasted. I'm purely using side
effects and the lists are large.

thanks,
Danny





More information about the Python-list mailing list