How different are a generator's send and next methods

Andrey Fedorov anfedorov at gmail.com
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: <http://mail.python.org/pipermail/python-list/attachments/20090930/6539266f/attachment.html>


More information about the Python-list mailing list