Hypothetically, if __enter__ could be a generator, with the with body running for each yielded value, that would give us the power to implement class Loop: def __enter__(self): self._do_continue = ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results