---
title: "Discussion on \"Python decorator\" | Hashnode"
description: "Discussion on \"Python decorator\". With the help of decorator, you can change the behavior of a function without modifying the function code. This means, you could execute some code that you would like to before/after the original function and anyone, who is calling this function, wou..."
url: "https://hashnode.com/posts/python-decorator/6327e5167ae3b59ef006766d"
---

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

Discussion

# [Python decorator](https://kapilg.hashnode.dev/python-decorator?utm_source=hashnode&utm_medium=feed)

With the help of decorator, you can change the behavior of a function without modifying the function code. This means, you could execute some code that you would like to before/after the original function and anyone, who is calling this function, wou...

Sep 19, 2022 · 2 min read · kapilg.hashnode.dev  
Updated Jul 12, 2023  
Read the article

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

## Written by

[kapil Garg](https://hashnode.com/@kapilgarg)

@kapilgarg · Bangalore

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

Lead Developer | Architect

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
