Flatten a list/tuple and Call a function with tuples

Eduardo "EdCrypt" O. Padoan eopadoan at altavix.com
Wed Jul 25 21:05:49 CEST 2007


def flatten(listOfLists):
    return list(chain(*listOfLists))

>From http://www.python.org/doc/2.4/lib/itertools-recipes.html
-- 
EduardoOPadoan (eopadoan->altavix::com)
Bookmarks: http://del.icio.us/edcrypt



More information about the Python-list mailing list