FHTMitchell <fergus....@gmail.com> added the comment: 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. ---------- resolution: not a bug -> status: closed -> open _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33555> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com