Been trying to read documentation and looking at online examples but my queue still returning None.
from collections import defaultdict
from Queue import Queue
-- in my init
self.tickerPrices = dict()
queue = Queue(maxsize=5)
queue.put((0.00097073, 67689.70942763))
self.tickerPrices['a'] = queue
def appendToTickerDict(self, tickerid, askprice, volume):
if(tickerid in self.tickerPrices):
tickerQueue = self.tickerPrices[tickerid].put((askprice, volume)) --RETURNS NONE
tickerQueue returns None. Before this step, I tested it and saw that if I add something to this queue in the init, it shows up with .get before executing this code
Any tips would be most helpful.