New submission from STINNER Victor <[EMAIL PROTECTED]>: Call BZ2File_iternext() on closed file doesn't release the lock.
Example: ----------- import bz2 obj = bz2.BZ2File('/etc/issue') obj.close() try: # acquire the lock obj.next() except ValueError, err: # but don't release the lock print err # DEAD LOCK here obj.readlines() ----------- Attached patch fixes this bug. ---------- components: Library (Lib) files: bz2_lock.patch keywords: patch messages: 69362 nosy: haypo severity: normal status: open title: missing lock release in BZ2File_iternext() versions: Python 2.6 Added file: http://bugs.python.org/file10837/bz2_lock.patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3309> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com