[Python-ideas] Exceptions thrown from generators.. patch.
ncoghlan at gmail.com
Sun Nov 20 13:07:39 CET 2011
On Sun, Nov 20, 2011 at 8:57 AM, Ron Adam <ron3200 at gmail.com> wrote:
> I'm probably missing something, but I can't put my finger on it.
Re-read the last discussion of Greg's coroutine PEP in the list
archives. If every frame on the stack has to be a generator frame,
you're effectively bifurcating Python into two languages - "normal
Python" (which uses both functions and generators) and "coroutine
Python" (which uses generators for everything). That's a bad idea, and
the reason so many people prefer the thread-style model of greenlet
based programming to the Twisted-style "inside out" model of event
This is a post where I highlight some of the issues with bifurcating
the language, as well as the fact that "generators-all-the-way-down"
*does* lead to bifurcation:
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas