micropython/micropython-lib — pull request #13 by nvbn (2014-12-14 16:58:25+00:00)
Title: Add support of `len` to `collections.deque`

Currently `collections.deque` in micropython doesn't support `len`:
```python
>>> from collections.deque import deque
>>> q = deque()
>>> len(q)
Traceback (most recent call last):
File "", line 1, in
TypeError: object of type 'deque' has no len()
```
But cpython supports:
```python
In [1]: from collections import deque
In [2]: q = deque()
In [3]: len(q)
Out[3]: 0
```
So I've added it to micropython `collections.deque`.