Are multiple `with` statements on one line equivalent to nested `with` statements, in python?
Are multiple `with` statements on one line equivalent to nested `with` statements, in python? Question: Are these two statements equivalent? with A() as a, B() as b: # do something with A() as a: with B() as b: # do something I ask because both a and b alter global variables (tensorflow here) and b …