proper name for python * operator?

后端 未结 8 2206
不知归路
不知归路 2020-11-22 07:20

What is the correct name for operator *, as in function(*args)? unpack, unzip, something else?

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 07:46

    One can also call * a gather parameter (when used in function arguments definition) or a scatter operator (when used at function invocation).

    As seen here: Think Python/Tuples/Variable-length argument tuples.

提交回复
热议问题