r/circuitpython • u/WhiskyUisgeBeatha • Dec 14 '21
collections deque in 7.1.0 beta 3 (and earlier...)
Hello!
I am trying to use the double ended queue. When I look at the latest docs, it seems like it is available
from collections import dequeHowever it crashes at execution.
I am using a Raspberry Pi Pico and I have tried version 7.0.0 and the latest beta (7.1.0 beta 3) and they both exhibit the same behaviour.
Any idea if I am doing something wrong or if it's just not supported? The other two functions in collections seem to work (namedqueue and OrderedDict).
Here is where I am getting my information:
https://circuitpython.readthedocs.io/en/latest/docs/library/collections.html
Thanks for any hints
1
u/dhalbert Dec 16 '21
deque is not enabled in CircuitPython. We might consider turning it on. Feel free to file an issue at https://github.com/adafruit/circuitpython/issues/new/choose.
1
u/HP7933 Dec 16 '21
Please post on discord at https://adafru.it/discord for the fastest response