[Python-ideas] New PEP 550: Execution Context

Yury Selivanov yselivanov.ml at gmail.com
Mon Aug 14 15:25:43 EDT 2017


Nick, you nailed it with your example.

In short: current PEP 550 defines Execution Context in such a way,
that generators and iterators will interact differently with it. That
means that it won't be possible to refactor an iterator class to a
generator and that's not acceptable.

I'll be rewriting the whole specification section of the PEP today.

Yury


More information about the Python-ideas mailing list