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.
Showing
Lib/contextlib.py
0 → 100644
Lib/test/nested.py
deleted
100644 → 0
Lib/test/test_contextlib.py
0 → 100644
Please register or sign in to comment