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 serhiy.storchaka
Recipients bkabrda, ethan.furman, georg.brandl, ncoghlan, paul.moore, python-dev, sYnfo, serhiy.storchaka, vstinner, wolma
Date 2015-03-20.15:22:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Thank you for your explanation Wolfgang! Now it is clear to me. The issue is that the generator calls the close() method of the subgenerator, but if the subgenerator is a file, the close() method closes (surprise!) the file. Two different protocols use the same method.

Interesting, how many similar bugs was introduced by blindly replacing "for/yield" with "yield from"?
Date User Action Args
2015-03-20 15:22:08serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, paul.moore, ncoghlan, vstinner, ethan.furman, python-dev, bkabrda, sYnfo, wolma
2015-03-20 15:22:08serhiy.storchakasetmessageid: <>
2015-03-20 15:22:08serhiy.storchakalinkissue23700 messages
2015-03-20 15:22:08serhiy.storchakacreate