This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jaraco
Recipients eric.araujo, jaraco, rhettinger
Date 2010-10-15.22:00:27
SpamBayes Score 1.2725866e-05
Marked as misclassified No
Message-id <12C7AB425F0DD546B6049311F827C74E097C38683A@VA3DIAXVS141.RED001.local>
In-reply-to <1287179454.74.0.207466416135.issue10110@psf.upfronthosting.co.za>
Content
I'm not sure what our use case is. I discovered this when I was looking at our project's util library, and we have a Queue subclass that overrides _full to handle the scenario where the queue shrinks. I'm guessing it's being used to dynamically adjust the queue size for performance reasons. Consider where you have a queue of items, but depending on the run time environment, that queue might need to be more or less limiting. Maybe the queue is larger during the day when requests are heavier and shrinks at night (so it's not accepting more items than it can handle when day breaks).

Surely that's a contrived example, and I suspect our actual usage is more concrete. I'll see if I can learn where we're using that functionality.

If shrinking maxsize is not allowed, that should be enforced in the interface (such as with a read-only/increase-only property) and documented. If you would rather proceed that way, I'll draft the patch for that instead.
History
Date User Action Args
2010-10-15 22:00:36jaracosetrecipients: + jaraco, rhettinger, eric.araujo
2010-10-15 22:00:28jaracolinkissue10110 messages
2010-10-15 22:00:27jaracocreate