[Python-checkins] python/dist/src/Misc NEWS,1.337.2.4.2.60,1.337.2.4.2.61

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Thu, 13 Feb 2003 09:06:07 -0800


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

Modified Files:
      Tag: release22-maint
	NEWS 
Log Message:
Backport 2.217 and 2.218:
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.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.337.2.4.2.60
retrieving revision 1.337.2.4.2.61
diff -C2 -d -r1.337.2.4.2.60 -r1.337.2.4.2.61
*** NEWS	12 Feb 2003 19:09:45 -0000	1.337.2.4.2.60
--- NEWS	13 Feb 2003 17:06:02 -0000	1.337.2.4.2.61
***************
*** 3,6 ****
--- 3,12 ----
  ============================
  
+ - 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.)
+ 
  - Through a bytecode optimizer bug (and I bet you didn't even know
    Python *had* a bytecode optimizer :-), "unsigned" hex/oct constants