[Python-ideas] Re: Additional Unpacking Generalizations for assignment

2021-09-09 Thread 笹原康央
Hi Takuo Matsuoka. Thank you for your interest in the idea of applying keyword unpack argument assignments at the time of assignment. Great magic code, you could implement this at the software level. But again it's not useful unless it's syntactically supported. Currently in Python even this

[Python-ideas] Re: Additional Unpacking Generalizations for assignment

2021-09-02 Thread Matsuoka Takuo
Dear 笹原康央, This sounds interesting. The assignment could be done e.g., like this. ```python def assign(variables): return f''' for _variable, _value in (lambda {variables}: locals())( *_values, **_assignments ).items(): exec(f'{{_variable}} = _value') ''' def