➜

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.

作者 Rosuav
收信人 Rosuav, gvanrossum, python-dev, schlamar
日期 2014-11-21.17:24:16
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1416590656.75.0.949948318081.issue22906@psf.upfronthosting.co.za>
In-reply-to
内容
Marc, are those all cases where the "raise StopIteration" is actually inside a generator? If so, it can be trivially replaced with "return". Yes, it'll break that way of spelling it, but it's a completely mechanical transformation, and making the change won't break your code for previous versions of Python. Personally, I would recommend using "return" there anyway, regardless of this proposal.
历史
日期 用户 动作 参数
2014-11-21 17:24:16Rosuav修改recipients: + Rosuav, gvanrossum, python-dev, schlamar
2014-11-21 17:24:16Rosuav修改messageid: <1416590656.75.0.949948318081.issue22906@psf.upfronthosting.co.za>
2014-11-21 17:24:16Rosuav链接issue22906 messages
2014-11-21 17:24:16Rosuav创建