[Python-ideas] How assignment should work with generators?
Kirill Balunov
kirillbalunov at gmail.com
Mon Nov 27 16:54:18 EST 2017
2017-11-27 19:23 GMT+03:00 Paul Moore <p.f.moore at gmail.com>:
> It should be reasonably easy
> to do a code search for something like "=.*islice", to find code
> that's a candidate for using the proposed syntax. I suspect there's
> very little code like that.
While isclice is something equivalent, it can be used in places like:
x, y = seq[:2]
x, y, z = seq[:3]
With kind regards, -gdg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20171128/68edfa3e/attachment.html>
More information about the Python-ideas
mailing list