[Python-ideas] Why operators are useful

Steven D'Aprano steve at pearwood.info
Mon Mar 18 19:16:14 EDT 2019

On Mon, Mar 18, 2019 at 04:07:11PM +0100, Jimmy Girardet wrote:

> The syntax {**b,**c} wasn't hard to remember.
> And easy because at the end it's idiomatic.

It is only idiomatic if moderately experienced Python programmers can 
automatically read it and write it without thinking about what it means.
That's not yet the case.

Since it is new, not many people know it at all, and those who do often 
can't use it because they have to use older versions of Python where the 
syntax is not allowed.

I don't recall the discussion over whether to allow dict unpacking 
literals. Was there a PEP? Did it occur here on Python-Ideas?


More information about the Python-ideas mailing list