test_sequences_and_iterators.py
4.48 KB
-
Fix py::make_iterator's __next__() for past-the-end calls · caedf74a
Fixes #896. From Python docs: "Once an iterator’s `__next__()` method raises `StopIteration`, it must continue to do so on subsequent calls. Implementations that do not obey this property are deemed broken."
Dean Moldovan committed