filmov
tv
Tutorials - Geir Arne Hjelle: Introduction to Decorators: Power Up Your Python Code

Показать описание
You can use decorators in your Python code to change the behavior of one or several functions. Many popular libraries are based on decorators. For example, you can use decorators to register functions as web endpoints, mark functions for JIT compilation, or profile your functions.
Using decorators makes your code simpler and more readable. However, to unlock the full capability of decorators, you should also be comfortable writing your own. In this tutorial, you'll learn how decorators work under the hood, and you'll get plenty of practice writing your own decorators.
You'll be introduced to necessary background information about how functions are first-class objects in Python and how you can define inner functions. You'll learn how to unwrap the @decorator syntactic sugar and how to write solid decorators that you can use in your code.
Being comfortable with using and creating decorators will make you a more efficient Python programmer.
Using decorators makes your code simpler and more readable. However, to unlock the full capability of decorators, you should also be comfortable writing your own. In this tutorial, you'll learn how decorators work under the hood, and you'll get plenty of practice writing your own decorators.
You'll be introduced to necessary background information about how functions are first-class objects in Python and how you can define inner functions. You'll learn how to unwrap the @decorator syntactic sugar and how to write solid decorators that you can use in your code.
Being comfortable with using and creating decorators will make you a more efficient Python programmer.
TUTORIAL / Geir Arne Hjelle / Introduction to Decorators: Power UP Your Python Code
Tutorials - Geir Arne Hjelle: Introduction to Decorators: Power Up Your Python Code
Tutorial: Geir Arne Hjelle - Introduction to Decorators: Power Up Your Python Code
Geir Arne Hjelle - Plugins: Adding Flexibility to Your Apps - PyCon 2019
Geir Arne Hjelle - Maps, Maps, Maps! | PyData Global 2022
Get Started With Linux Terminal - Code Conversation
Python Decorators and Writing for Real Python | Real Python Podcast #1
Understanding decorators [Python tutorial]
Exploring the New Features of Python 3.11 | Real Python Podcast #131
Halloweenanimasjon del 1
Solving Advent of Code Puzzles With Python | Real Python Podcast #89
Exploring the New Features of Python 3.9 | Real Python Podcast #30
Advent of Code Using Python: Code Conversation
Exploring the New Features of Python 3.10 | Real Python Podcast #81
Halloweenanimasjon del 2
Python Decorators for Beginners In 5 Minutes!
'On the Use and Misuse of Decorators' - Christopher Neugebauer (PyConline AU 2021)
Python :Why return NotImplemented instead of raising NotImplementedError(5solution)
Package Python Code With pyproject.toml & Listing Files With pathlib | Real Python Podcast #136
Exploring the New Features of Python 3.12 | Real Python Podcast #175
Halloweenanimasjon del 3
Python: Introduksjon - Steg 1
Python: Introduksjon - Steg 2
Python: Introduksjon - Steg 3
Комментарии