5 ms·
the easy to forget justification is surprising to me. especially when most modern languages have the concept of unpacking, rest, spread or etc. making the tric
by blackandblue 7y ago
the easy to forget justification is surprising to me. especially when most modern languages have the concept of unpacking, rest, spread or etc.
making the trick work with other mapping types and making it faster is totally understandable though.
- banannaise 7y agoIt's pretty obvious with the context of other languages, but wildly outside the norm for Python. I rarely see dict unpacking outside function signatures.