Ron Adam <ron3...@gmail.com> added the comment: There is a test for 'yield from' as a function argument without the extra parentheses.
f(yield from x) You do need them in the case of a regular yield. f((yield)) or f((yield value)) Shouldn't the same rule apply in both cases? * I'm trying to do a version of the patch with 'yield_from' as a separate item from 'yield' in the grammar, but it insists on the parentheses due to it being a yield_expr component. ---------- nosy: +ron_adam _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11682> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com