good way to do side effects on lists?

Danny Shevitz shevitz at lanl.gov
Wed Sep 22 19:19:31 EDT 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