Player <asif at go-away-spammer.com> wrote: ... > if item == type(list): It's very unlikely that the item will equal the type of list (which is the builtin metaclass 'type' itself). You presumably mean: if isinstance(item, list): Alex