Behind the Underscores EP05: Comparison Methods (__eq__, __lt__, __gt__)

PROGRAMMING

May 13, 2025

A practical guide to Python's comparison methods (__eq__, __lt__, etc.) with real-world examples, best practices, and common pitfalls.

Behind the Underscores EP04: Arithmetic Methods (__add__, __sub__, __mul__)

PROGRAMMING

May 13, 2025

Learn how to use Python’s arithmetic magic methods like __add__, __sub__, __mul__, and more to make your classes behave like numbers.

Behind the Underscores EP03: String Representation Methods (__str__, __repr__, __format__)

PROGRAMMING

May 12, 2025

Discover why Python's __str__, __repr__, and __format__ methods are more than just fancy print tricks. Learn how they impact debugging, logging, testing, and even user interfaces with real-world examples and hidden tips that most developers overlook.

Behind the Underscores EP02: Object Initialization and Construction Methods

PROGRAMMING

May 11, 2025

Explore the advanced roles of __new__, __init__, and __del__ in Python. Learn when to use each, how they impact object lifecycle, and how to apply them in real-world scenarios like Singletons and immutable types.

Behind the Underscores EP01: Understanding Python’s Special Methods Conceptually

PROGRAMMING

May 10, 2025

We’re starting the Behind The Underscores series by looking at the big picture, where we’ll examine the private methods of Python classes in depth.