Let's implement useless Python objects
Talkat PythonAsia 2026 · on Saturday, 2026-03-21· at 15:30· Teresa Yuchengco Auditorium (Main Hall)·
summary
Implements a set of intentionally broken collection classes that obey Python protocols but produce wrong results: a liar container where "in" always flips, a Fibonacci size where len(range(50)) returns the 50th Fibonacci (~20 billion) instead of 50, and a shuffle iterable that yields a new random order on each for-loop. Uses collections.abc abstract base classes and dunder methods (__contains__, __len__, __iter__, __getitem__) to compose and combine these behaviors and exposes surprising side effects like infinite count.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 2:52Useless Python objects
- 9:11Python object protocols
- 13:04Abstract base classes
- 15:12Modular sequences
- 19:06Misprinted dict & frozenset
- 23:31Key takeaways








