[Python-checkins] python/dist/src/Misc NEWS,1.655,1.656

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Wed, 12 Feb 2003 13:46:15 -0800


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv1904

Modified Files:
	NEWS 
Log Message:
Provide access to the import lock, fixing SF bug #580952.  This is
mostly from SF patch #683257, but I had to change unlock_import() to
return an error value to avoid fatal error.

Should this be backported?  The patch requested this, but it's a new
feature.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.655
retrieving revision 1.656
diff -C2 -d -r1.655 -r1.656
*** NEWS	12 Feb 2003 20:48:22 -0000	1.655
--- NEWS	12 Feb 2003 21:46:11 -0000	1.656
***************
*** 11,15 ****
  
  Core and builtins
! ----------------
  
  - Through a bytecode optimizer bug (and I bet you didn't even know
--- 11,15 ----
  
  Core and builtins
! -----------------
  
  - Through a bytecode optimizer bug (and I bet you didn't even know
***************
*** 75,78 ****
--- 75,84 ----
  Extension modules
  -----------------
+ 
+ - The imp module now has ways to acquire and release the "import
+   lock": imp.acquire_lock() and imp.release_lock().  Note: this is a
+   reentrant lock, so releasing the lock only truly releases it when
+   this is the last release_lock() call.  You can check with
+   imp.lock_held().  (SF bug #580952 and patch #683257.)
  
  - Fix some bugs in the parser module.  SF bug #678518.