Wouldn't be the same as:
```python
cdocs = dict(enumerate(walk.get_raw_docs(msg, parts)))
```
?