News for hackers. Stuff that matters.
Re:Python 3.5.0 by 1st1 on Sunday September 13, 2015 @04:18PM (#10212679)
I think inglor refers to the new 'async with' statement: https://docs.python.org/3/reference/compound_stmts.html#asyn...

Using it you can safely cleanup/commit transaction/release lock/etc when exiting a block of statements (even if an exception was raised). Plain 'with' statement cannot call asynchronous code in '__exit__' methods, 'async with' can do that (in '__aexit__').

There are no comments on this comment yet.