[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.

----------
files: shrinking_queue_not_full.patch
keywords: patch
messages: 118736
nosy: jaraco
priority: normal
severity: normal
status: open
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>
<http://bugs.python.org/issue10110>
_______________________________________


More information about the Python-bugs-list mailing list