[Python-ideas] Dictionary destructing and unpacking.
Chris Angelico
rosuav at gmail.com
Thu Jun 8 16:40:22 EDT 2017
On Fri, Jun 9, 2017 at 6:02 AM, MRAB <python at mrabarnett.plus.com> wrote:
> It could also be used on the RHS to pack:
>
>>>> a = 1
>>>> b = 2
>>>> c = 3
>>>> d = 4
>>>> foo = {{a, b, c, d}}
The trouble with that is that it's syntactically identical to creating
a set containing a set containing four values. That may cause
problems.
ChrisA
More information about the Python-ideas
mailing list