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

gevent.queue.peek() #643

Closed
michaelvol opened this issue Aug 30, 2015 · 1 comment
Closed

gevent.queue.peek() #643

michaelvol opened this issue Aug 30, 2015 · 1 comment
Labels
Type: Bug Identified as a bug; needs a code change to fix

Comments

@michaelvol
Copy link

self.getters of queue class was changed from set to deque by commit d243caa.
the method peek() still uses discard() and throws an exception:
File "/usr/local/lib/python2.7/dist-packages/gevent/queue.py", line 305, in peek
self.getters.discard(waiter)
AttributeError: 'collections.deque' object has no attribute 'discard'.

you also use self.getters.add(waiter), which is probably where the exception is throws at the first place.

@jamadden jamadden added the Type: Bug Identified as a bug; needs a code change to fix label Aug 31, 2015
@jamadden
Copy link
Member

Thanks for the report.

hashbrowncipher pushed a commit to hashbrowncipher/gevent that referenced this issue Oct 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Identified as a bug; needs a code change to fix
Projects
None yet
Development

No branches or pull requests

2 participants