Behind the Underscores EP12: Descriptor Protocol (__get__, __set__, __delete__)

PROGRAMMING

May 20, 2025

This blog post demystifies Python’s descriptor protocol by explaining the special methods __get__, __set__, and __delete__ . With real backend-focused examples you’ll learn how descriptors can simplify attribute access and clean up the architecture.

Behind the Underscores EP11: Callable Objects: __call__

PROGRAMMING

May 20, 2025

Discover how Python’s __call__ method lets you turn objects into callable functions. This blog dives into practical use cases, best practices, and real-world backend examples to help you write cleaner, more flexible code.

Behind the Underscores EP10: Context Management (__enter__, __exit__)

PROGRAMMING

May 19, 2025

Learn how Python’s context managers work with __enter__, __exit__, and the with statement. This blog breaks down the concept and teaches you how to write your own context managers to manage resources like files, network connections, and more.

Behind the Underscores EP09: Attribute Access (__getattr__ __getattribute__ __setattr__ __delattr__)

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 (__len__ __iter__ __next__ __contains__)

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.