4 Feb 2022 4 Feb '22
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.