➜

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.

作者 hakril
收信人 ezio.melotti, gcewing, hakril, ncoghlan
日期 2014-07-14.13:16:08
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1405343768.19.0.182750140352.issue21964@psf.upfronthosting.co.za>
In-reply-to
内容
I found something else, I think it worth mentioning it.

This side-effect allows to create generators that return other values that None. And the CPython's behavior is not the same for all versions:

    >>> {(yield i) : i for i in range(2)}
    <generator object <dictcomp> at 0x7f0b98f41410>
    >>> list(_)
    # python3.(3,4,5)
    [0, 1]
    # python3.2
    [0, 1, {None: 1}] #  python3.2 appends the generator's return value.
历史
日期 用户 动作 参数
2014-07-14 13:16:08hakril修改recipients: + hakril, gcewing, ncoghlan, ezio.melotti
2014-07-14 13:16:08hakril修改messageid: <1405343768.19.0.182750140352.issue21964@psf.upfronthosting.co.za>
2014-07-14 13:16:08hakril链接issue21964 messages
2014-07-14 13:16:08hakril创建