GenericAI_Sweeper/utils.py

3 lines
127 B
Python
Raw Normal View History

def is_in(elt, seq):
"""Similar to (elt in seq), but compares with 'is', not '=='."""
return any(x is elt for x in seq)