PEP 479: Change StopIteration handling inside generators.

Closes issue #22906.
14 files changed