News for hackers. Stuff that matters.
Re:Python 3.5.0 by ColinDabritz on Sunday September 13, 2015 @03:52PM (#10212584)
What is async resource management? can you link to docs for the features you mean? I'm having trouble googling this one, maybe different keywords are used?
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__').