Proto-PEP on a 'yield from' statement

Feb. 14, 2009
2:57 a.m.
Greg Ewing wrote:
I think there is a difference. I were to
I would would be very surprised at the result when putting it into a for-loop:
Where did the two go? Why did it disappear? Well, the answer is that the for-loop body ignored it, the same way the None emitted by a mutating function gets ignored. But that answer doesn't seem very compelling to me, just confusing. -1 for returning from a generator. -- Carl
5877
Age (days ago)
5877
Last active (days ago)
0 comments
1 participants
participants (1)
-
Carl Johnson