Skip to content

Instantly share code, notes, and snippets.

@p2or p2or/
Last active Oct 13, 2016

What would you like to do?
def typecheck(obj):
return hasattr(obj, '__iter__') and not isinstance(obj, str)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.