Lightning Talk: Python Decorators
summary
Decorators commonly break introspection lost — name and __doc__ are not preserved — and simple wrappers fail for methods, classmethods and staticmethods. The concrete fix is the wrapt library, which provides a wrapper decorator that handles functions methods classmethods staticmethods and supports robust monkey patching support. Author reports a 12‑post deep dive, ready‑made docs on Read the Docs, endorsement from core contributors, and real use where it preserves metadata and behavior reliably.
AI-written summary · about
related talks
02h 15mAll about decorators
02h 21mIntroduction to Decorators: Power Up Your Python Code
38mDecorators demystified
02h 32mIntroduction to Decorators: Power UP Your Python Code
31mHear no evil, see no evil, patch no evil: Or, how to monkey-patch safely.
01mDecorators Demystified
29mHow Decorators Function
21mEnhancing Decorators with Type Annotations: Techniques and Best Practices
