[issue10110] Queue doesn't recognize it is full after shrinking maxsize
Jason R. Coombs
report at bugs.python.org
Fri Oct 15 22:29:52 CEST 2010
Jason R. Coombs <jaraco at jaraco.com> added the comment:
I should point out that in Python 2.5, it was possible for a subclass to override the _full method to account for this situation, but with Python 2.6 and later, the calculation in _full was hand-inlined... so it's not readily possible for a subclass to correct for this behavior. It might be desirable to refactor that calculation into a _full method, though I suspect this would have performance implications, which is why I stuck with just adjusting the comparison in its various uses.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10110>
_______________________________________
More information about the Python-bugs-list
mailing list