Inicio · Vídeos gratis · Programming
Lección gratis

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.

Gratis · sin registro
Profundiza más

Python from First Principles to Pythonic Mastery

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

Ver el curso completo →
Más vídeos gratis