---
title: "Discussion on \"The Print vs Return Trap That Silently Breaks Your Python Decorators\" | Hashnode"
description: "Discussion on \"The Print vs Return Trap That Silently Breaks Your Python Decorators\". I spent hours debugging this so you don't have to."
url: "https://hashnode.com/posts/print-vs-return-trap-python-decorators/69ade47c86766ac3a6590706"
---

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

Discussion

# [The Print vs Return Trap That Silently Breaks Your Python Decorators](https://blog.moussaamzat.dev/print-vs-return-trap-python-decorators?utm_source=hashnode&utm_medium=feed)

I spent hours debugging this so you don't have to.

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

-   [#python](https://hashnode.com/tag/python)
-   [#decorators](https://hashnode.com/tag/decorators)
-   [#debugging](https://hashnode.com/tag/debugging)
-   [#python-tips](https://hashnode.com/tag/python-tips)
-   [#common-mistakes](https://hashnode.com/tag/common-mistakes)

## 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.
