Martin Panter added the comment:

BTW “yield” is not a fair comparison because its syntax is even stranger (due 
to originally being a “yield” statement):

def g():
    x = yield + 1  # Yield the value +1
    y = (yield) + 1  # Add 1 after yielding
    return (yield)  # Mandatory brackets

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24612>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to