circuitpython/tests/basics/set_specialmeth.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
96 B
Python
Raw Normal View History

# set object with special methods
s = {1, 2}
print(s.__contains__(1))
print(s.__contains__(3))