(Feb-04-2018, 06:35 PM)wavic Wrote: https://docs.python.org/3/reference/expr...rator.sendyeah, but you have to make an ugly loop around that, instead of a pretty one that receiving lets you do. that's the way i have been doing it. i guess we have to accept it as being as pythonic as we can get.
basically, sending to a generator is not an iteration and python generators are not symmetric (if they were, yield and send would be the same thing).
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.