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

Remove quoted text/code for __aiter__ and __anext__ helpers

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.2
    • Affects Version/s: None
    • Component/s: None
    • None

      Similar to MOTOR-415.

      Example:

          if PY35:
              exec(textwrap.dedent("""
              def __aiter__(self):
                  return self
      
              async def __anext__(self):
                  # An optimization: skip the "await" if possible.
                  if self._buffer_size() or await self.fetch_next:
                      return self.next_object()
                  raise StopAsyncIteration()
              """), globals(), locals())
      

            Assignee:
            prashant.mital Prashant Mital (Inactive)
            Reporter:
            prashant.mital Prashant Mital (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: