Topic
Python Magic Methods
By: Nick Timkovich
Date: Aug. 9, 2018, 6 p.m.
Everything in Python is an object and nothing is special. Python's built-in objects can be added, called, indexed, or with'd, and with a little magic, so can yours! Use of magic methods, those prefixed/suffixed with double underscores, can increase the flexibility of your code while also making it shorter and simpler.