Behind the Underscores EP07: Container protocol (__getitem__, __setitem__, __delitem__)

PROGRAMMING

May 16, 2025

In this blog, we explore Python’s container protocol methods, __getitem__, __setitem__, and __delitem__ . You’ll learn how to customize object behavior just like dictionaries or lists.

Behind the Underscores EP06: Bitwise Methods (__and__, __or__, __xor__)

PROGRAMMING

May 15, 2025

A deep dive into Python’s bitwise magic methods like __and__, __or__, and __xor__. Great for advanced learners who want to write smarter, cleaner code with custom objects and operators.

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.