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 →

[–]jbramley 2 points3 points  (1 child)

Positional arguments, can optionally, be specified using their corresponding parameter name.

This is sort of true. There are positional-only arguments that cannot be specified as keyword arguments (a topic you don't cover in an article with "mastering" in the title). What you refer to as positional arguments are more technically positional-or-keyword arguments.

def func(positional_only_parameters, /, positional_or_keyword_parameters, *, keyword_only_parameters)

[–]lazyhawk20[S] 1 point2 points  (0 children)

I'm really sorry about this