How different are a generator's send and next methods

Andrey Fedorov anfedorov at
Wed Sep 30 22:24:25 CEST 2009

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list