On Sat, Jun 04, 2022 at 10:04:39AM -0000, Steve Jorgensen wrote:
> OK. That's not terrible. It is a redundancy though, having to re-state
> the count of variables that are to be de-structured into on the left.
Redundancy is good:
# Obviously, clearly wrong:
spam, eggs, cheese = islice(myvalues, 5)
# Not obviously right.
spam, eggs, cheese, * = myvalues
We don't have to squeeze every bit of redundancy out of code.
--
Steve
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/Y43RVWOYVZEXIUTS2D2RTLD7VJBWN4EP/
Code of Conduct: http://python.org/psf/codeofconduct/