---
title: "Discussion on \"Python decorators simplified\" | Hashnode"
description: "Discussion on \"Python decorators simplified\". Put simply: Decorators wrap a function, modifying its behavior.\nA simple decorator example:\ndef my_decorator(function):\n    def wrapper():\n        print(\"Something is happening before the function is called.\")\n        function()\n        # do other st..."
url: "https://hashnode.com/posts/python-decorators-simplified/642be0107f9f2fae769b70a4"
---

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

Discussion

# [Python decorators simplified](https://alittlecoding.com/python-decorators-simplified?utm_source=hashnode&utm_medium=feed)

Put simply: Decorators wrap a function, modifying its behavior. A simple decorator example: def my\_decorator(function): def wrapper(): print("Something is happening before the function is called.") function() # do other st...

Apr 4, 2023 · 2 min read · alittlecoding.com  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python-beginner](https://hashnode.com/tag/python-beginner)
-   [#python3](https://hashnode.com/tag/python3)
-   [#python-projects](https://hashnode.com/tag/python-projects)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Arif Khan](https://hashnode.com/@alittlecoding)

@alittlecoding · India

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

Software Engineer | Youtuber

I am a developer by heart. Love programming and problem solving. and love to share whatever I learn. Feel free to contact me or follow on Twitter. I tweet about Programming, MEMEs, Quotes, Books etc. I also make youtube video related to programming and tutorials. checkout my channel also "a little coding"

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
