Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Um, I thought I'd already checked this in. | Guido van Rossum | 2006-03-10 | 1 | -6/+5 |
| | | | | | | | Anyway, this is the changes to the with-statement so that __exit__ must return a true value in order for a pending exception to be ignored. The PEP (343) is already updated. | ||||
* | Fix a bug in nested() - if one of the sub-context-managers swallows the | Guido van Rossum | 2006-03-01 | 1 | -1/+4 |
| | | | | exception, it should not be propagated up. With unit tests. | ||||
* | Updates to the with-statement: | Guido van Rossum | 2006-02-28 | 1 | -0/+138 |
- 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. |