This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author qwjqwj
Recipients pitrou, qwjqwj
Date 2009-03-27.16:33:18
SpamBayes Score 1.4489781e-05
Marked as misclassified No
Message-id <1238171608.03.0.996800305712.issue5577@psf.upfronthosting.co.za>
In-reply-to
Content
More experiments:
The tuple pair (10,20) don't correspond to (i,i*i)
The yield order is distorted

>>> x = (((yield i),(yield i*i)) for i in range(3))
>>> x.__next__()
0
>>> x.send(10)
0
>>> x.send(20)
(10, 20)
>>> x.send(30)
1
>>> x.send(40)
1
>>> x.send(60)
(40, 60)
>>> x.send(70)
2
>>> x.send(80)
4
>>> x.send(90)
(80, 90)
>>> x.send(100)
Traceback (most recent call last):
  File "<pyshell#107>", line 1, in <module>
    x.send(100)
StopIteration
History
Date User Action Args
2009-03-27 16:33:28qwjqwjsetrecipients: + qwjqwj, pitrou
2009-03-27 16:33:28qwjqwjsetmessageid: <1238171608.03.0.996800305712.issue5577@psf.upfronthosting.co.za>
2009-03-27 16:33:20qwjqwjlinkissue5577 messages
2009-03-27 16:33:18qwjqwjcreate