~/talk

Decorators in Python: Powerful Patterns & Practical Uses

Talkat PyCon Israel 2025 · on Tuesday, 2025-09-09· [python, developer-experience]
slides:none on file

Explains how a decorator receives the original function object and returns an inner function that replaces it, shown with an uppercase example that calls the original and prints before/after; covers nested decorators, decorators-with-arguments (three-layer factory), and a skipped-but-available class-decorator sample on the slides; demonstrates real uses: timing, logging, caching, and CLI/web wiring with Typer/FastAPI; recommends functools.wraps, unit tests, typing, and SRP; slides and code are behind a QR code.

AI-written summary · about

  1. 0:00Introduction to decorators
  2. 2:14What is a decorator
  3. 4:23Creating a decorator
  4. 10:17Decorators with parameters
  5. 12:26Nesting decorators
  6. 13:12Decorating classes
  7. 14:35Real-world examples
  8. 17:54Best practices for decorators
  9. 20:43Resources and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.