---
title: "Discussion on \"Class-Based Python Decorators: When Functions Aren't Enough\" | Hashnode"
description: "Discussion on \"Class-Based Python Decorators: When Functions Aren't Enough\". Closures hold state. Classes give it a home."
url: "https://hashnode.com/posts/class-based-python-decorators-when-functions-aren-t-enough/69c05f9ed9da55a9a5e43e25"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Class-Based Python Decorators: When Functions Aren't Enough](https://blog.moussaamzat.dev/class-based-python-decorators-when-functions-aren-t-enough?utm_source=hashnode&utm_medium=feed)

Closures hold state. Classes give it a home.

Mar 22 · 9 min read · blog.moussaamzat.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#decorators](https://hashnode.com/tag/decorators)
-   [#advanced-python](https://hashnode.com/tag/advanced-python)
-   [#oop](https://hashnode.com/tag/oop)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)

## Written by

[Moussa Kalam AMZAT](https://hashnode.com/@moussakalamamzat)

@moussakalamamzat · Kigali, Rwanda

  
[View profile](https://hashnode.com/@moussakalamamzat)

Building, breaking, and learning | A developer who teaches what he learns | EdTech enthusiast

I'm Moussa, a Beninese Software Engineer based in Rwanda. I took what many considered an unlikely path, pivoting from Diplomacy and International Relations to Software Engineering. That career switch taught me something I carry into everything I do: the best learning happens when you're willing to start from zero. I work as a full-time software engineer and contribute to nonprofits supporting African students and sport talents in their education. I'm passionate about EdTech and AI and their potential to empower learners across Sub-Saharan Africa. Writing is how I process what I learn and give it back — every article here is something I wish I'd found when I was figuring it out myself. Fun facts: I'm a certified IJF judo instructor, I taught myself English through YouTube, and I'm always one rabbit hole away from picking up something new.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
