Re: How different are a generator's send and next methods

2009-10-01 Thread Simon Forman
On Wed, Sep 30, 2009 at 4:24 PM, Andrey Fedorov wrote: > As far as I can tell, a generator's .next() is equivalent to .send(None). Is > this true? They are equivalent AFAIK. > If so, [why] aren't they unified in a method with a single argument which > defaults > to None? > - Andrey next() pred

How different are a generator's send and next methods

2009-09-30 Thread Andrey Fedorov
As far as I can tell, a generator's .next() is equivalent to .send(None). Is this true? If so, aren't they unified in a method with a single argument which defaults to None? - Andrey -- http://mail.python.org/mailman/listinfo/python-list