Robin Becker schrieb: > # New attempts: > from itertools import imap > def flatten4(x, y): > '''D Murman''' > l = [] > list(imap(l.extend, izip(x, y))) > return l > > > from Tkinter import _flatten > def flatten5(x, y): > '''D Murman''' > return list(_flatten(zip(x, y)))
well, i would really like to take credit for these, but they're not mine ;) (credit goes to Michael Spencer). i especially like flatten4, even if its not as fast as the phenomenally faster flatten7. -- David Murmann (NN!) ;) -- http://mail.python.org/mailman/listinfo/python-list