diff options
author | Guido van Rossum <guido@python.org> | 2003-02-12 21:46:11 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-02-12 21:46:11 (GMT) |
commit | c4f4ca91e112a55b2fac5853718a5f05797f30b5 (patch) | |
tree | b7e75170ce51536cf76bbfd58f1901946a7cab50 /Misc/NEWS | |
parent | 47710656e53717b8369b72efcc486287f61bd69e (diff) | |
download | cpython-c4f4ca91e112a55b2fac5853718a5f05797f30b5.zip cpython-c4f4ca91e112a55b2fac5853718a5f05797f30b5.tar.gz cpython-c4f4ca91e112a55b2fac5853718a5f05797f30b5.tar.bz2 |
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.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r-- | Misc/NEWS | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -10,7 +10,7 @@ What's New in Python 2.3 alpha 2? *Release date: XX-XXX-2003* Core and builtins ----------------- +----------------- - Through a bytecode optimizer bug (and I bet you didn't even know Python *had* a bytecode optimizer :-), "unsigned" hex/oct constants @@ -75,6 +75,12 @@ Core and builtins 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. - Thanks to Scott David Daniels, a subtle bug in how the zlib |