contextlib shortcuts
Coming soon
Write lightweight context managers with @contextmanager, suppress, and ExitStack.
You'll be able to
- Write generator-based context managers with @contextmanager
- Ignore expected errors cleanly using contextlib.suppress
- Manage dynamic numbers of resources with ExitStack
Coming soon
This lesson is being written. It will be free here, like every lesson. The Telegram channel announces new lessons as they open.