This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mital Ashok
Recipients Mital Ashok
Date 2015-05-29.18:23:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432923782.23.0.743258740131.issue24327@psf.upfronthosting.co.za>
In-reply-to
Content
(This is more of a feature request than a bug, but https://www.python.org/dev/peps/pep-0042/ said to post it here)

My request is to have syntax like this:

    yield *iterable

to lazily return the iterable's items, not much unlike:

    # ...
    for i in iterable:
        yield i
    # ...

This is because I constantly find myself yielding all the values in, say, a list, then modifying it and yielding it in a loop.
History
Date User Action Args
2015-05-29 18:23:02Mital Ashoksetrecipients: + Mital Ashok
2015-05-29 18:23:02Mital Ashoksetmessageid: <1432923782.23.0.743258740131.issue24327@psf.upfronthosting.co.za>
2015-05-29 18:23:02Mital Ashoklinkissue24327 messages
2015-05-29 18:23:02Mital Ashokcreate