• Guido van Rossum's avatar
    Updates to the with-statement: · 1a5e21e0
    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.
    1a5e21e0
Adı
Son kayıt (commit)
Son güncelleme
..
RPM Loading commit data...
Vim Loading commit data...
ACKS Loading commit data...
AIX-NOTES Loading commit data...
BeOS-NOTES Loading commit data...
BeOS-setup.py Loading commit data...
HISTORY Loading commit data...
NEWS Loading commit data...
NEWS.help Loading commit data...
PURIFY.README Loading commit data...
Porting Loading commit data...
README Loading commit data...
README.OpenBSD Loading commit data...
README.valgrind Loading commit data...
RFD Loading commit data...
SpecialBuilds.txt Loading commit data...
build.sh Loading commit data...
cheatsheet Loading commit data...
developers.txt Loading commit data...
find_recursionlimit.py Loading commit data...
gdbinit Loading commit data...
indent.pro Loading commit data...
pymemcompat.h Loading commit data...
python-mode.el Loading commit data...
python.man Loading commit data...
setuid-prog.c Loading commit data...
valgrind-python.supp Loading commit data...
vgrindefs Loading commit data...