view wsgraph/utils.py @ 39:d1e9602145fa

rudimentary deletion and notes to self
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 25 Dec 2012 12:46:39 -0800
parents f1f7a505e0d0
children
line wrap: on
line source

"""
utility functions that should be in core python
"""

def isiterable(instance):
    try:
        iter(instance)
        return True
    except TypeError:
        return False