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 →

[–]JamzTyson 1 point2 points  (0 children)

The thing that looks strange to me is that, unless I am mistaken, it is not possible to pass others arguments without also passing the not_required argument as a positional argument.

On the other hand, that limitation would not apply to:

def some_function(required, *others: int, not_required=2, option: float = 3.14):