This is a free video excerpt from Fluent Python: The Power of Special Methods, an Oriole online tutorial presented by Luciano Ramalho. The full version includes all of the examples Luciano references in the excerpt, as well as step-by-step video, text, and runnable code.

Be sure to also check out Luciano's book, Fluent Python.

Article image: Ace of spades (source: Shannon via Flickr).