Re: [Twisted-Python] Asynchronous code in a context manager

2018-03-26 Thread Peter Westlake
Sadly, no. Should have said, sorry: it's 2.7.3. Peter. On Fri, 23 Mar 2018, at 17:54, meejah wrote: > > Are you using Python3? Then there's "asynchronous context managers". I > finally found a use-case for one in txtorcon, so here's an example: > > > http://txtorcon.readthedocs.io/en/latest

Re: [Twisted-Python] Asynchronous code in a context manager

2018-03-23 Thread meejah
Are you using Python3? Then there's "asynchronous context managers". I finally found a use-case for one in txtorcon, so here's an example: http://txtorcon.readthedocs.io/en/latest/txtorcon-controller.html#txtorcon.Tor.onion_authentication -- meejah _