Skip to content

MultiCallIterator incorrectly raises StopIteration #61

@lonetech

Description

@lonetech

The __iter__ method in MultiCallIterator is a generator, using the yield statement to produce results. As such it should simply return in the end, not raise any exception. Just remove the raise StopIteration line to correct this bug.
In addition, the entire method is unnecessary, as iter() can derive it from __len__ and __getitem__.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions