Decorating functions with parameters - Python Refresher

Опубликовано: 27 Февраль 2026
на канале: teclado
1,934
37

In this episode of Python Refresher, we learn how to write decorators for Python functions that have parameters or take arguments.

When writing decorators, you may have encountered TypeErrors saying your function is "missing 1 required positional argument", or similar. This happens if your decorator calls the function, but doesn't pass the required arguments.

In this video we learn how to fix that, and make sure our decorators can be applied on any function, with or without parameters!

We've got 4 videos that talk about Python decorators. This is the third video.

Previous video:    • The 'at' syntax for decorators - Python Re...  

Next video:    • Decorators with parameters - Python Refresher  

-- Links --

✅Subscribe to the channel: https://www.youtube.com/tecladocode?s...

✅Twitter:   / tecladocode  

✅Instagram:   / tecladocode  

✅Facebook:   / tecladocode  

✅Our Complete Python Course that takes you from beginner to expert in Python: https://www.udemy.com/the-complete-py...