Slide 42
Slide 42 text
LEARNING FROM SETS
Set operations can greatly simplify logic.
Pythonic objects should implement __repr__, __eq__.
Pythonic collections should implement __len__, __iter__,
__contains__, and accept iterable arguments.
Check out this example showing how to implement class
designed for dense sets of small integers:
Much more about these subjects in Fluent Python.
42
https://github.com/standupdev/uintset