[New-bugs-announce] [issue24327] yield unpacking

Mital Ashok report at bugs.python.org
Fri May 29 20:23:02 CEST 2015


New submission from Mital Ashok:

(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.

----------
messages: 244397
nosy: Mital Ashok
priority: normal
severity: normal
status: open
title: yield unpacking
type: enhancement
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24327>
_______________________________________


More information about the New-bugs-announce mailing list