]> granicus.if.org Git - python/commit
PEP 343 -- the with-statement.
authorGuido van Rossum <guido@python.org>
Mon, 27 Feb 2006 22:32:47 +0000 (22:32 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 27 Feb 2006 22:32:47 +0000 (22:32 +0000)
commitc2e20744b2b7811632030470971c31630f0975e2
treee97b1c1471fd00e4e5648ed317274c1d9005d2ca
parent5fec904f84a40005f824abe295525a1710056be0
PEP 343 -- the with-statement.

This was started by Mike Bland and completed by Guido
(with help from Neal).

This still needs a __future__ statement added;
Thomas is working on Michael's patch for that aspect.

There's a small amount of code cleanup and refactoring
in ast.c, compile.c and ceval.c (I fixed the lltrace
behavior when EXT_POP is used -- however I had to make
lltrace a static global).
23 files changed:
Doc/lib/asttable.tex
Doc/ref/ref7.tex
Grammar/Grammar
Include/Python-ast.h
Include/graminit.h
Include/opcode.h
Lib/compiler/ast.py
Lib/opcode.py
Lib/symbol.py
Lib/test/contextmanager.py [new file with mode: 0644]
Lib/test/nested.py [new file with mode: 0644]
Lib/test/test_with.py [new file with mode: 0644]
Misc/ACKS
Misc/NEWS
Parser/Python.asdl
Python/Python-ast.c
Python/ast.c
Python/ceval.c
Python/compile.c
Python/graminit.c
Python/import.c
Python/symtable.c
Tools/compiler/ast.txt