Message77998
FWIW, here's a trivial Queue subclass with instrumentation:
class HighWaterQueue(Queue):
def _init(self, maxsize):
Queue.__init__(self, maxsize)
self.highwater = 0
def _put(self, item):
Queue._put(self, item)
self.highwater = max(self.highwater, self._qsize()) |
|
Date |
User |
Action |
Args |
2008-12-17 23:53:33 | rhettinger | set | recipients:
+ rhettinger, roysmith, pitrou, LambertDW |
2008-12-17 23:53:33 | rhettinger | set | messageid: <1229558013.74.0.15000767127.issue4680@psf.upfronthosting.co.za> |
2008-12-17 23:53:33 | rhettinger | link | issue4680 messages |
2008-12-17 23:53:32 | rhettinger | create | |
|