Tagged articles
4 articles
Page 1 of 1
Code Mala Tang
Code Mala Tang
Aug 31, 2025 · Fundamentals

Unlock Python’s Special Classes: Iterators, Context Managers, Descriptors & Metaclasses

This guide explores five special Python class types—iterators, context managers, descriptors, abstract base classes, and metaclasses—explaining their protocols, essential magic methods, practical use cases, and providing clear code examples to help you build custom implementations and write more expressive, maintainable code.

Abstract Base ClassesIteratorsPython
0 likes · 14 min read
Unlock Python’s Special Classes: Iterators, Context Managers, Descriptors & Metaclasses
Test Development Learning Exchange
Test Development Learning Exchange
Sep 16, 2024 · Fundamentals

Understanding Python Abstract Base Classes (ABCs) with Practical Examples

This article explains the purpose and usage of Python's Abstract Base Classes, demonstrates how to define and register ABCs, and provides multiple code examples—including geometric shapes, collections, database connections, file handlers, and command patterns—to illustrate their practical application.

ABCAbstract Base Classescollections-abc
0 likes · 13 min read
Understanding Python Abstract Base Classes (ABCs) with Practical Examples