[Python-ideas] Short form for keyword arguments and dicts

Ron Adam ron3200 at gmail.com
Thu Jun 27 05:01:20 CEST 2013


On 06/26/2013 08:16 PM, Ethan Furman wrote:
>
> I don't know about you, but the first time I saw * and ** I had no idea
> what they did and had to learn it.

One of my fist thoughts when I first learned Python was that it would have 
made things clearer if they used two different symbols for pack and unpack.

     def foo(*args, **kwds):
          return bar(^args, ^^kwds)

There isn't any issue for the computer having those the same, but as a 
human, the visual difference would have helped make it easier to learn.

But it's very hard to change something like this.  And even harder to 
change how people think once they are used to something.

Cheers,
    Ron



More information about the Python-ideas mailing list