Python documentation for os.removexattr — what does the '*' (star) argument mean?

前端 未结 1 882
予麋鹿
予麋鹿 2021-01-19 02:52

My first question, please be gentle. I searched but could not find an answer here or elsewhere.

Note that this question does not apply to unpacking of arguments like

相关标签:
1条回答
  • 2021-01-19 03:18

    The single asterisk * just means that it is forcing you to use named arguments. In this case if you want to pass a value for follow_symlinks, you have to pass the argument name.

    The idea is you don't having to read function calls like foo(True, False, False) and not know what those values are doing.

    0 讨论(0)
提交回复
热议问题