Project

General

Profile

« Previous | Next » 

Revision 2962

lists.py: is_seq(): Also return true for sets

View differences:

lib/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