- 03 May, 2006 1 kayıt (commit)
-
-
Nick Coghlan yazdı
Finish bringing SVN into line with latest version of PEP 343 by getting rid of all remaining references to context objects that I could find. Without a __context__() method context objects no longer exist. Also get test_with working again, and adopt a suggestion from Neal for decimal.Context.get_manager()
-
- 02 May, 2006 1 kayıt (commit)
-
-
Guido van Rossum yazdı
discussion. There are two places of documentation that still mention __context__: Doc/lib/libstdtypes.tex -- I wasn't quite sure how to rewrite that without spending a whole lot of time thinking about it; and whatsnew, which Andrew usually likes to change himself.
-
- 26 Nis, 2006 1 kayıt (commit)
-
-
Tim Peters yazdı
uses of it in test_with.py. As a result, test_with has been skipped (due to failing imports) on all buildbot boxes since. Alas, that's not a test failure -- you have to pay attention to the 1 skip unexpected on PLATFORM: test_with kinds of output at the ends of test runs to notice that this got broken. It's likely that more renaming in test_with.py would be desirable.
-
- 03 Nis, 2006 1 kayıt (commit)
-
-
Phillip J. Eby yazdı
-
- 10 Mar, 2006 1 kayıt (commit)
-
-
Guido van Rossum yazdı
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.
-
- 28 Şub, 2006 4 kayıt (commit)
-
-
Guido van Rossum yazdı
- 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.
-
Thomas Wouters yazdı
Neal.
-
Tim Peters yazdı
-
Tim Peters yazdı
-
- 27 Şub, 2006 1 kayıt (commit)
-
-
Guido van Rossum yazdı
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).
-