efficient list merging

Peter Saffrey theoryboy at my-deja.com
Wed Sep 4 10:09:37 EDT 2002


Sorry, there's a mistake in my previous posting. The merged listing should be:

mergelol = [['a'], ['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h', 'i',
'j'], ['k', 'l', 'm'], ['d'], ['f', 'g']]
                               ^^^^^^^^
I'd missed the last non-repeated sub-list from the second list.

Peter



More information about the Python-list mailing list