On Fri, Apr 22, 2016 at 1:19 AM, justin walters <walters.justi...@gmail.com> wrote: > I agree with the others that the new syntax is not needed. > > I would also like to point out that I believe any new added syntax or > functionality should avoid the use of '*' and '**' as both of these > characters are already used for many things such as optional arguments and > mathematical operators. Adding more uses for said characters only decreases > the readability of the code.
The single asterisk is used for packing and unpacking, though. See PEP 448 [1] for some of the ways this can be used (in the context of "the ways this can NOW be used in Python 3.5"). So the proposed "yield *sequence" does make good sense; however, "yield from" has, as Steven pointed out, *far* more detailed semantics, as it basically allows generators to be refactored, with all their semantics (yield, send, throw, return). ChrisA [1] https://www.python.org/dev/peps/pep-0448/ -- https://mail.python.org/mailman/listinfo/python-list