Hacker News new | ask | show | jobs
by xapata 2035 days ago
> manually ... releasing locks

You might like `contextlib.ExitStack` if `with lock` doesn't cut it for you.