cpython/Objects
Guido van Rossum 1a5e21e033 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.
2006-02-28 21:57:43 +00:00
..
abstract.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
boolobject.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
bufferobject.c Use proper PyArg_Parse format char for Py_ssize_t, instead of 'l', in 2006-02-16 19:44:46 +00:00
cellobject.c Use new GC API. 2001-08-29 23:54:21 +00:00
classobject.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
cobject.c Fix SF #1412837, compile failed with Watcom compiler 2006-01-24 06:06:11 +00:00
codeobject.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
complexobject.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
descrobject.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
dictnotes.txt Fix typos and add some elaborations 2004-03-15 15:52:22 +00:00
dictobject.c Oops. Fix syntax for C89 compilers. 2006-02-25 23:32:30 +00:00
enumobject.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
fileobject.c Updates to the with-statement: 2006-02-28 21:57:43 +00:00
floatobject.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
frameobject.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
funcobject.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
genobject.c * Refcount leak. It was just a reference to Py_None, but still. 2006-02-14 15:50:44 +00:00
intobject.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
iterobject.c Use Py_ssize_t for counts and sizes. 2006-02-16 14:32:27 +00:00
listobject.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
listsort.txt The key to the various sort columns got lost. Pulled from 2005-09-23 17:14:22 +00:00
longobject.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
methodobject.c Use Py_ssize_t for counts and sizes. 2006-02-16 14:32:27 +00:00
moduleobject.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
object.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
obmalloc.c Oops, this is supposed to be disabled by default. 2006-02-16 07:30:11 +00:00
rangeobject.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
setobject.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
sliceobject.c Merge ssize_t branch. 2006-02-15 17:27:45 +00:00
stringobject.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
structseq.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
tupleobject.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
typeobject.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
unicodectype.c Enhance the performance of two important Unicode character 2005-10-20 19:06:35 +00:00
unicodeobject.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00
unicodetype_db.h SF #989185: Drop unicode.iswide() and unicode.width() and add 2004-08-04 07:38:35 +00:00
weakrefobject.c Revert backwards-incompatible const changes. 2006-02-27 16:46:16 +00:00