Documentation

tuplelist.__contains__()


tuplelist.__contains__()

__contains__ ( val )

Provides efficient support for the Python in operator.

Example usage:

  if (1,2) in l:
    print("Tuple (1,2) is in tuplelist l")