[New-bugs-announce] [issue10110] Queue doesn't recognize it is full after shrinking maxsize
Jason R. Coombs
report at bugs.python.org
Fri Oct 15 03:25:05 CEST 2010
New submission from Jason R. Coombs <jaraco at jaraco.com>:
The Queue object has a maxsize parameter and attribute, but due to the test for a full queue, shrinking the maxsize could result in the Queue not recognizing that it is full.
The attached patch (against the Python 3 trunk) demonstrates this limitation with a unit test and fixes the failing test case.
title: Queue doesn't recognize it is full after shrinking maxsize
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file19240/shrinking_queue_not_full.patch
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce