Tag

class-decorator

1 views collected around this technical thread.

Python Programming Learning Circle
Python Programming Learning Circle
Apr 8, 2022 · Fundamentals

A Comprehensive Guide to Python Decorators and Aspect-Oriented Programming (AOP)

This article explains the concept of Aspect‑Oriented Programming (AOP) and demonstrates how Python decorators—both function‑based and class‑based—can be used to implement AOP features such as pre‑ and post‑execution logic, handling arguments, preserving metadata with functools.wraps, and stacking multiple decorators.

Aspect-Oriented Programmingaopclass-decorator
0 likes · 18 min read
A Comprehensive Guide to Python Decorators and Aspect-Oriented Programming (AOP)
Python Programming Learning Circle
Python Programming Learning Circle
Mar 31, 2022 · Fundamentals

Understanding Python Objects and Class Decorators

This article explains Python's object model, showing that numbers, strings, lists, tuples, sets, dictionaries, functions, classes, and modules are all objects, and then thoroughly introduces decorators, describing their design‑pattern nature, typical uses such as logging and profiling, and demonstrates class‑decorator implementation with practical examples.

DecoratorsDesign PatternProgramming Fundamentals
0 likes · 3 min read
Understanding Python Objects and Class Decorators