~/talk

A Taxonomy of Decorators: A-E

Talkat PyCascades 2019 · 2019-02-23..02-24· [python]
slides:none on file

Covers a concrete taxonomy: argument-changing decorators (example: click options change a function signature), return-value decorators (TurboGears expose → JSON), binding/descriptor decorators (SQLAlchemy hybrid_property and a true-instance-method example), control-flow decorators (retry, LRU cache/memoization, even an infinite-retry demo), descriptive decorators (pytest marks, Flask app.route registration) and execution-level transforms (Numba-style source rewrite), with code patterns, pitfalls, and small runnable examples. Watch if needing practical rules and tradeoffs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:48Overview
  3. 3:02Syntax
  4. 4:06decorators with arguments
  5. 5:41decorators as classes
  6. 6:28A Taxonomy
  7. 8:41Return Value
  8. 9:28Composable Result
  9. 10:00Binding
  10. 12:46Control Flow
  11. 13:31Retry
  12. 14:12Infinite retry
  13. 15:54The mark
  14. 16:35Routing via decorators
  15. 17:15Example
  16. 19:00Number
  17. 19:30Function
  18. 20:58Wrapping
  19. 22:13Other examples
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.