[Python-ideas] Accepting multiple mappings as positional arguments to create dicts

Chris Angelico rosuav at gmail.com
Wed Apr 11 00:22:08 EDT 2018


On Wed, Apr 11, 2018 at 11:19 AM, Mike Miller <python-ideas at mgmiller.net> wrote:
>
> On 2018-04-09 04:23, Daniel Moisset wrote:
>>
>> In which way would this be different to {**mapping1, **mapping2,
>> **mapping3} ?
>
>
> That's possible now, but believe the form mentioned previously would be more
> readable:
>
>     dict(d1, d2, d3)
>

That's more readable than {**d1, **d2, **d3} ? Doesn't look materially
different to me.

ChrisA


More information about the Python-ideas mailing list