summaryrefslogtreecommitdiff
path: root/Python/Python-ast.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-02-28 21:57:43 +0000
committerGuido van Rossum <guido@python.org>2006-02-28 21:57:43 +0000
commit437a2e31793b86a0a8f2bf1d6f1a786a111540a3 (patch)
tree73cebb12fcf159603815a40127540b55cc7dfd24 /Python/Python-ast.c
parentfabb57675972d7648c02f6baffd54f64f82ea069 (diff)
downloadcpython-437a2e31793b86a0a8f2bf1d6f1a786a111540a3.tar.gz
Updates to the with-statement:
- New semantics for __exit__() -- it must re-raise the exception if type is not None; the with-statement itself doesn't do this. (See the updated PEP for motivation.) - Added context managers to: - file - thread.LockType - threading.{Lock,RLock,Condition,Semaphore,BoundedSemaphore} - decimal.Context - Added contextlib.py, which defines @contextmanager, nested(), closing(). - Unit tests all around; bot no docs yet.
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions