Author gvanrossum
Recipients gvanrossum, ncoghlan, pitrou
Date 2010-10-29.00:43:01
SpamBayes Score 5.88172e-10
Marked as misclassified No
Message-id <AANLkTinLjF7FyGRM+=CbbDtkKpOe0iM8gV1K9F_Qz2FQ@mail.gmail.com>
In-reply-to <1288311964.34.0.620278625513.issue10220@psf.upfronthosting.co.za>
Content
I take it back. The 4-value state looks better.

My initial hesitance was that if you ever see GEN_RUNNING you are
probably already in trouble, since you can't call send, next, throw or
even close on a running generator (they all throw ValueError), so why
are you looking at its state at all? But most reasons for looking at
the state are obscure anyway, and from a different perspective it's a
nice state machine. (Note that there's no transition from SUSPENDED to
CLOSED -- you have to go through RUNNING to possibly handle
GeneratorExit.)
History
Date User Action Args
2010-10-29 00:43:04gvanrossumsetrecipients: + gvanrossum, ncoghlan, pitrou
2010-10-29 00:43:02gvanrossumlinkissue10220 messages
2010-10-29 00:43:01gvanrossumcreate