Jun-06-2020, 09:51 AM
Thanks for the reply.
According to the link below one has to handle any StopIteration exceptions one generates within the
generator itself. If one does not and lets the exception bubble out from the generator then Python turns it into a RuntimeError.
https://www.python.org/dev/peps/pep-0479/
According to the link below one has to handle any StopIteration exceptions one generates within the
generator itself. If one does not and lets the exception bubble out from the generator then Python turns it into a RuntimeError.
https://www.python.org/dev/peps/pep-0479/