On May 14, 9:55 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> I feel I'm out of luck, but if someone could point some way to write a  
> generator in C, I'be very grateful!

Perhaps the code in the itertools module will provide a good example
-- they behave like generators in many respects except that you are
responsible for tracking state and jumping to an appropriate resume
point.  Being C, it won't be as convenient as Python generators, but
should be able to translate any generator into equivalent C.


Raymond Hettinger


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to