view wsgraph/utils.py @ 58:c4f551305a23 default tip

note http://marvl.infotech.monash.edu/webcola/
author Jeff Hammel <k0scist@gmail.com>
date Sun, 02 Aug 2015 08:14:20 -0700
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