On Wed, May 16, 2012 at 8:47 PM, Johan Rydberg <
johan....@gmail.com> wrote:
> Is there a way to accomplish the same functionality, without
> subclassing Greenlet?
Sure, just pass a callable to link() that will kill() your greenlet.
one_greenlet.link(lambda *args:
another_greenlet.kill(Exception('one_greenlet is dead'))
However, using kill() and asynchronous exceptions in general is not
recommended. Best to structure your program differently so you don't
need it.