Aditya Dubeyadityadubey.hashnode.dev·Mar 25, 2024Stack Frames in Python: Accessing the frame object using decoratorIntroduction Understanding memory management is crucial for writing efficient and error-free code in any programming language. In Python, a language known for its simplicity and readability, memory management plays a vital role in the execution of pr...Discuss·20 likesframeobject
Sachin PalforTeam - GeekPythonteamgeek.geekpython.in·Mar 20, 2024A Comprehensive Guide to Decorators in PythonYou might have encountered functions or classes decorated with functions prefixed with "@", for example, @random. These are known as decorators as they are placed above your class or function. In this tutorial, you will learn about: Decorators in Py...DiscussPython
Bro Grammingbrog.hashnode.dev·Mar 11, 2024Understanding the Basics Of Python Decorators :In Python, decorators are a mechanism for dynamically altering the behavior of functions or methods. They provide a concise syntax for applying functions to other functions, typically enhancing or modifying their functionality. Decorators are often u...Discuss·1 likePython
Matteo CollinaforPlatformatic Blogblog.platformatic.dev·Mar 7, 2024Fastify Fundamentals: Quick-starting Hooks And DecorationsGreat code should be clean, understandable, and easily modifiable. This is why every Node.js developer should learn how to add hooks and decorators to their code. Decorators enable you to enhance the functionalities of your routes. Hooks, on the othe...Discuss·543 readsfastify
Himanshu Chauhanhimanshuchauhan.hashnode.dev·Mar 4, 2024Day 18: Decorators in PythonOn the Eighteenth Day of Python Learning, Embark on the Journey of Decorators: Unlocking the Power of Functionality Extension. Decorators in Python serve as versatile design pattern, enabling modification or extension of function/method behavior with...Discuss·1 likePython Python
Saeed Ramezaniblogdotpy.hashnode.dev·Feb 18, 202413 common decorators in DjangoDecorators in Django are a powerful tool that allows you to modify the behavior of a function or class.💪 They are a form of metaprogramming, as they modify parts of the program at compile time. Here are some commonly used decorators: @login_require...DiscussDjango
Andres Gesteiraquantum-quirks.hashnode.dev·Feb 3, 2024Class Composition in TypeScriptSoftware design is important. It is the process of creating a system that meets the requirements and objectives for a certain project. To design a good software, we should consider various factors such as scalability and maintainability, and make inf...Discuss·642 readsTypeScript
Enmanuel Magallanesblog.cardor.dev·Jan 16, 2024Notifier Function StatusThis library provides a decorator to show a toast in your screen and if you setup, send a email when your function end. All that you need to do is use a decorator and some specific parameters, like in the following example: from notifier import notif...DiscussPython
Tariq Mehmoodtariq1004.hashnode.dev·Jan 1, 2024Decorator in Pythondef decorator(func): def wrapper: print(f"Before the function.") func() print(f"After the function.") return wrapper # Tells the function, it is a decorator. @decorator def hello(): print("Hello, World!") # Call ...Discuss·26 readsPython
Namya Shahbigsmoke.hashnode.dev·Dec 31, 2023Python Interview Questions Part 2Python Modules and Packages What is a module in Python? Describe the differences between import and from...import statements in Python. How do you install and use third-party libraries in Python? Explain the purpose of a virtual environment in Py...Discussimport and from