Martin Panter added the comment: But when the starred element is not the final one, it couldn’t be lazy, so you would end up with an inconsistency.
a, *rest, z = <generator> Also, it would be inconsistent with other kinds of iterables, which get turned into list objects. >>> a, *aa = (1, 2) >>> aa [2] >>> a, *aa = "abc" >>> aa ['b', 'c'] ---------- nosy: +martin.panter _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25542> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com