Michele Simionato wrote:

Looks fine to me. In some situations you may also use hasattr(el,
'__iter__') instead of isinstance(el, list) (it depends if you want to
flatten generic iterables or only lists).

Thanks! Such stuff is what I'm looking for.

Regards,
mk

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to