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 FHTMitchell
Recipients FHTMitchell, serhiy.storchaka
Date 2018-05-17.12:21:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1526559686.31.0.682650639539.issue33555@psf.upfronthosting.co.za>
In-reply-to
Content
Apologies if I wasn't clear. I understand that

def f():
    yield 1
    return

is valid python. What I'm saying, if you follow the link, is that

def f():
    yield 1
    return 2  # not the argument

should not be considered valid python according to PEP 255. This is implemented in python 2 but not in python 3.
History
Date User Action Args
2018-05-17 12:21:26FHTMitchellsetrecipients: + FHTMitchell, serhiy.storchaka
2018-05-17 12:21:26FHTMitchellsetmessageid: <1526559686.31.0.682650639539.issue33555@psf.upfronthosting.co.za>
2018-05-17 12:21:26FHTMitchelllinkissue33555 messages
2018-05-17 12:21:26FHTMitchellcreate