Revision 2962
Added by Aaron Marcuse-Kubitza about 12 years ago
lists.py | ||
---|---|---|
1 | 1 |
# Lists |
2 | 2 |
|
3 |
def is_seq(value): return isinstance(value, list) or isinstance(value, tuple) |
|
3 |
def is_seq(value): |
|
4 |
return (isinstance(value, list) or isinstance(value, tuple) |
|
5 |
or isinstance(value, set)) |
|
4 | 6 |
|
5 | 7 |
def clear(list_): |
6 | 8 |
while True: |
Also available in: Unified diff
lists.py: is_seq(): Also return true for sets