~/talk

The Power of Python Decorators: Practical Insights for Modern Development

Talkat XtremePython 2025 · on Tuesday, 2025-11-18· [python]
slides:none on file

Demonstrates how to build real decorators (function and class forms), shows an execution-time stopper timing decorator, a logging wrapper and a caching example that uses an existing caching library, and explains preserving metadata with functools.wraps and using args/kwargs patterns. Code walkthroughs show when decorators run (at definition vs call), how decorated functions call the original, and a timing/logging decorator that actually prints measurements — practical samples, runnable snippets, and clear best practices.

AI-written summary · about

  1. 0:00Introduction to decorators
  2. 1:13Functions as objects
  3. 3:00What are decorators
  4. 4:46Creating a decorator
  5. 5:29Decorator execution flow
  6. 11:07Decorating functions with parameters
  7. 13:17Class-based decorators
  8. 14:20Nesting decorators
  9. 16:09Decorating classes
  10. 17:15Decorators with arguments
  11. 18:39Real-world decorators
  12. 21:37Best practices for decorators
  13. 25:13Tips for beginners
~/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.