def is_iterable(obj): try: iter(obj) return True except TypeError: return False
Is there a better way? -- Neil Cerutti -- http://mail.python.org/mailman/listinfo/python-list
def is_iterable(obj): try: iter(obj) return True except TypeError: return False
Is there a better way? -- Neil Cerutti -- http://mail.python.org/mailman/listinfo/python-list