is this the equivalent, memory wise of the following? just not sure how that generator syntax works.
```
for doc in docs:
    yield cls(doc)
```