I've sometimes seen functions in help(...)
defined like this:
def foo(x, *, y):
...
What does the lonely asterisk , *,
in this function definition mean?
Searching for this answer online leads to lots of explanations of this other construction, which doesn't seem to me to be related:
def bar(x, *args, **kwargs):
...
A very similar thing is covered in the Python FAQs to describe a slash used like this:
>>> help(divmod)
Help on built-in function divmod in module builtins:
divmod(x, y, /)
Return the tuple (x//y, x%y). Invariant: div*y + mod == x.
So why is this related-seeming syntax with an asterisk not mentioned there? Where is it documented?