Index: Queue.py =================================================================== --- Queue.py (revision 60906) +++ Queue.py (working copy) @@ -192,7 +192,10 @@ # Initialize the queue representation def _init(self, maxsize): - self.maxsize = maxsize + try: + self.maxsize = int(maxsize) # To change the maxsize it must acquire the mutex + except (TypeError, AttributeError, ValueError): # grumph + raise ValueError('maxsize should be an integer') self.queue = deque() def _qsize(self):