Today I experienced this question on SO get closed in 17 minutes as a duplicate. The part about what yield does is a duplicate, yes, but as I wrote in the comments there are other problems the OP obviously did not notice (in fact, they are hard, or even impossible, to spot for a beginner in Python), and I was not able to provide an answer pointing out these problems, because, as I was almost done writing my answer, the question got closed ! So not only the OP will probably never know why the code does not do what he expects, but I had invested time for nothing, too ! That's why I think it should be impossible (or only possible for moderators) to close new questions for some hours (e.g. 12). Then, if no one has answered in that delay, it could always be closed.
It could even go as far as, let the users vote for closing the question, but not delete it directly. Instead, only close it when the delay is over and no one has answered.