Skip to content Skip to sidebar Skip to footer

Python Documentation For Os.removexattr -- What Does The '*' (star) Argument Mean?

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 *args. In the

Solution 1:

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.

Post a Comment for "Python Documentation For Os.removexattr -- What Does The '*' (star) Argument Mean?"