➜

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.

作者 ncoghlan
收信人 Inyeol.Lee, Jim Fasarakis-Hilliard, arigo, belopolsky, benjamin.peterson, danielsh, emptysquare, erickt, esc24, georg.brandl, glyph, gvanrossum, levkivskyi, ncoghlan, rhettinger, serhiy.storchaka
日期 2017-11-23.11:07:19
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1511435239.82.0.213398074469.issue10544@psf.upfronthosting.co.za>
In-reply-to
内容
Also see https://bugs.python.org/issue1660500 for the original Python 3.0 change to hide the iteration variable.

While the test suite already covers some interesting scoping edge cases as result of that initial patch, I think one we're currently missing is the nested comprehension case:

    >>> [[x for x in range(1, i)] for i in range(2, 5)]
    [[1], [1, 2], [1, 2, 3]]
历史
日期 用户 动作 参数
2017-11-23 11:07:19ncoghlan修改recipients: + ncoghlan, gvanrossum, arigo, georg.brandl, rhettinger, belopolsky, benjamin.peterson, erickt, glyph, Inyeol.Lee, serhiy.storchaka, esc24, danielsh, emptysquare, levkivskyi, Jim Fasarakis-Hilliard
2017-11-23 11:07:19ncoghlan修改messageid: <1511435239.82.0.213398074469.issue10544@psf.upfronthosting.co.za>
2017-11-23 11:07:19ncoghlan链接issue10544 messages
2017-11-23 11:07:19ncoghlan创建