Behind the Underscores EP09: Attribute Access

PROGRAMMING

May 19, 2025

This blog explores Python's special attribute access methods: __getattr__, __getattribute__, __setattr__, and __delattr__. Learn how to control and customize attribute behavior in your classes with examples.

Behind the Underscores EP08: Length and iteration Methods

PROGRAMMING

May 16, 2025

Learn how to make your custom Python classes behave like built-in types using special methods like __len__, __iter__, __next__, and __contains__. This blog breaks down each method with real-world examples and practical tips for writing clean code.

Behind the Underscores EP07: Container protocol

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

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

PROGRAMMING

May 13, 2025

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