New submission from Jason R. Coombs <jar...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue10110>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to