Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is three any wrong with the example code of PriorityQueue? #3

Closed
hiczlf opened this issue Mar 20, 2014 · 1 comment
Closed

Is three any wrong with the example code of PriorityQueue? #3

hiczlf opened this issue Mar 20, 2014 · 1 comment

Comments

@hiczlf
Copy link

hiczlf commented Mar 20, 2014

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?

@hiczlf 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
@dangra dangra closed this as completed in f985c30 Mar 20, 2014
@dangra
Copy link
Member

dangra commented Mar 20, 2014

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants