The Special Protocols Room: Magic Methods and Operator Overloading
Timothy had built a working Book class, but something felt incomplete. He couldn't sort a list of books by year. He couldn't compare two books to see if they were equal. He couldn't use len() on a book to get page count. His custom class felt like a ...
aaron-rose.hashnode.dev9 min read