Início · Vídeos grátis · Programming
Aula grátis

Decorators in Practice

You'll write a timer decorator with functools.wraps, apply it with the @ syntax, and confirm the wrapped function still reports its original name, seeing clearly that a decorator is just a function that takes a function and returns a function. You'll then stack multiple decorators on a single function and watch how they layer one wrapper around another.

Grátis · sem cadastro
Vá além

Python from First Principles to Pythonic Mastery

Learn Python syntax, the CPython data model, async, types, and the libraries that power real work

Ver o curso completo →
Mais vídeos grátis