annotate tvii/iterable.py @ 93:36c141f0f0bd default tip

add tensorflow dependency + console scripts
author Jeff Hammel <k0scist@gmail.com>
date Sun, 17 Dec 2017 14:31:35 -0800
parents 0149be5a984c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21
0149be5a984c [iterable] add function to tell True/False if argument is an iterable
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
1 def isiterable(x):
0149be5a984c [iterable] add function to tell True/False if argument is an iterable
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
2 try:
0149be5a984c [iterable] add function to tell True/False if argument is an iterable
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
3 iter(x)
0149be5a984c [iterable] add function to tell True/False if argument is an iterable
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
4 return True
0149be5a984c [iterable] add function to tell True/False if argument is an iterable
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
5 except TypeError:
0149be5a984c [iterable] add function to tell True/False if argument is an iterable
Jeff Hammel <k0scist@gmail.com>
parents:
diff changeset
6 return False