| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix contextlib not copying function attributes | Phillip J. Eby | 2006-03-28 | 1 | -0/+15 |
| | | |||||
| * | Fix a problem with @contextmanager not detecting a broken generator | Phillip J. Eby | 2006-03-25 | 1 | -0/+22 |
| | | | | | | | that yields after a throw(). Make @contextmanager not reraise exceptions, but return a false value in that case instead. Add test cases for both behaviors. | ||||
| * | Fix a bug in nested() - if one of the sub-context-managers swallows the | Guido van Rossum | 2006-03-01 | 1 | -0/+54 |
| | | | | | exception, it should not be propagated up. With unit tests. | ||||
| * | Updates to the with-statement: | Guido van Rossum | 2006-02-28 | 1 | -0/+240 |
| - 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. | |||||
