On Thu, Feb 03, 2022 at 07:50:50PM -0000, Yurii Karabas wrote: > I am proposing to add smth like JS destructing assignment to python. > Basically, it will allow unpacking any mapping (should have > __getitem__ and keys() methods) into variables.
This idea would be more compelling if you can show examples from real code (not made up pretend examples) where this would be useful, and contrast the existing solution with the proposed syntax. -- Steve _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/PNWJ5JHF3DFRGSVODJVOUELSZT5AA4QB/ Code of Conduct: http://python.org/psf/codeofconduct/