In python, what\'s the best way to test if a variable contains a list or a tuple? (ie. a collection)
Is isinstance() as evil as suggested here? http://w
isinstance()
>>> l = [] >>> l.__class__.__name__ in ('list', 'tuple') True