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 vstinner
Recipients bkabrda, ethan.furman, georg.brandl, ncoghlan, paul.moore, python-dev, r.david.murray, sYnfo, serhiy.storchaka, vstinner, wolma
Date 2015-03-20.16:02:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
> Isn't there some discussion somewhere that if iter(x) returns x you probably have buggy code?

I agree that the issue comes from TextIOWrapper.__iter__(),
BufferedReader.__iter__() and FileIO.__iter__() returns simply return
self *and* have a close method. The issue is not "yield from".
Date User Action Args
2015-03-20 16:02:55vstinnersetrecipients: + vstinner, georg.brandl, paul.moore, ncoghlan, r.david.murray, ethan.furman, python-dev, serhiy.storchaka, bkabrda, sYnfo, wolma
2015-03-20 16:02:55vstinnerlinkissue23700 messages
2015-03-20 16:02:55vstinnercreate