You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from queuelib import FifoDiskQueue
q = FifoDiskQueue("/home/lf")
from queuelib import PriorityQueue
pq = PriorityQueue(q)
pq.push(b'a', 3)
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/dist-packages/queuelib/pqueue.py", line 33, in push
self.queues[priority] = self.qfactory(priority)
TypeError: 'FifoDiskQueue' object is not callable
Should q be a factory generate FifoDiskQueue object?
The text was updated successfully, but these errors were encountered:
hiczlf
changed the title
Is three any thing with the example code of PriorityQueue?
Is three any wrong with the example code of PriorityQueue?
Mar 20, 2014
Should q be a factory generate FifoDiskQueue object?
The text was updated successfully, but these errors were encountered: