Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-122

Make MotorGridOut iterable

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Python 3.5's "async for" lets us iterate a MotorGridOut or AsyncIOMotorGridOut, analogous to how PyMongo's GridOuts have always been iterable:

      async for chunk in gridout:
          print(chunk)
      

      Update "differences.rst" to mention this.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: