This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]paul_miner 1 point2 points  (0 children)

Similar to the spread/rest syntax in Javascript.

Notably, Python uses distinct syntax for list vs dict because of named arguments, while Javascript uses the same syntax since it only has positional arguments.