FHTMitchell <fergus....@gmail.com> added the comment:

Apologies if I wasn't clear. I understand that

def f():
    yield 1

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.

resolution: not a bug -> 
status: closed -> open

Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list

Reply via email to