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 <[email protected]>
<http://bugs.python.org/issue24327>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com