A decorator is a callable that wraps another function to extend its behavior without modifying it, applied with `@decorator` syntax. Common uses: logging, timing, caching (`functools.lru_cache`), access control. They are functions returning functions.
Python· asked at Google✓ Added to review
💬
Send Feedback / Bug
Feedback Submitted!
Thank you. Your help keeps Geeky Script running smoothly.