Shane Geiger wrote:
if type(el) == list or type(el) is tuple:
A tiny improvement:
if type(el) in (list, tuple): -- http://mail.python.org/mailman/listinfo/python-list
Shane Geiger wrote:
if type(el) == list or type(el) is tuple:
A tiny improvement:
if type(el) in (list, tuple): -- http://mail.python.org/mailman/listinfo/python-list