[issue29302] add contextlib.AsyncExitStack

Vedran Čačić report at bugs.python.org
Sat Jan 28 09:16:22 EST 2017


Vedran Čačić added the comment:

An example from "real life": I recently needed this when implementing a demo of dining philosophers using asyncio (when the order of locks should depend on comparison of fork ids, not be static). Of course, it wasn't hard to implement it directly, but still, it would be nice if I had it in stdlib.

Also, yes, it would probably be nicer if there was only one ExitStack with push_async and similar methods.

----------
nosy: +veky

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29302>
_______________________________________


More information about the Python-bugs-list mailing list