Thank you Fredrik Lundh for showing everybody that indeed lot of people feel the need of such function in Python too.
>to create a generic version, you have to decide which sequences to treat like >sequences< In my version I give the function some parameter(s) to define what I want to flatten. I'll probably put it in the cookbook... Bye, Bearophile -- http://mail.python.org/mailman/listinfo/python-list