Multiprocessing Queue maxsize limit is 32767
I'm trying to write a Python 2.6 (OSX) program using multiprocessing, and I want to populate a Queue with more than the default of 32767 items. from multiprocessing import Queue Queue(2**15) # raises OSError Queue(32767) works fine, but any higher number (e.g. Queue(32768) ) fails with OSError: [Errno 22] Invalid argument Is there a workaround for this issue? One approach would be to wrap your multiprocessing.Queue with a custom class (just on the producer side, or transparently from the consumer perspective). Using that you would queue up items to be dispatched to the Queue object that you're