A small set of design pattern I miss as idioms in python.
- Scope Guard. A simple pattern
for operations one needs when exiting a scope.
Example:
with ScopeGuard(my_cleanup_function): # Some code...
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A small set of design pattern I miss as idioms in python.
with ScopeGuard(my_cleanup_function):
# Some code...