]> granicus.if.org Git - python/commit
Allow multiple context managers in one with statement, as proposed
authorGeorg Brandl <georg@python.org>
Mon, 25 May 2009 21:02:56 +0000 (21:02 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 25 May 2009 21:02:56 +0000 (21:02 +0000)
commit944f684ce6f439bc868d4b189c45f726dfb9d3b1
tree3fd9c596e78b01836158508978ce8eab678bb37b
parent04516611e7e4ceaef6fef9413719e9cb5b4bb087
Allow multiple context managers in one with statement, as proposed
in http://codereview.appspot.com/53094 and accepted by Guido.

The construct is transformed into multiple With AST nodes so that
there should be no problems with the semantics.
Doc/reference/compound_stmts.rst
Grammar/Grammar
Include/graminit.h
Lib/compiler/transformer.py
Lib/test/test_compiler.py
Lib/test/test_parser.py
Lib/test/test_with.py
Misc/NEWS
Modules/parsermodule.c
Python/ast.c
Python/graminit.c