09/06/2016, 9:29 PM
I have a Python question. in scheduler.schedule(), there are double yield. why calling generator.send() can skip the second yield? Python doc says "The send() method returns the next value yielded by the generator, or raises StopIteration if the generator exits without yielding another value.” Is it because the second “yield” yields None? but if I add another “yield” it won’t skip both of them.