Turn Your Python Function into a Decorator with One Line of Code | Towards Data Science

A new way to write shorter, clearer, and more readable Python decorators that also act as a context manager

By · · 1 min read
Turn Your Python Function into a Decorator with One Line of Code | Towards Data Science

Source: Towards Data Science

A new way to write shorter, clearer, and more readable Python decorators that also act as a context manager