Support for positional only parameters/arguments def f(a, /, b, *, c)
#8362
Labels
Milestone
def f(a, /, b, *, c)
#8362
CPython supports so called positional only parameters (PEP 570) with as the name say, cannot be passed using their name.
They are useful when a function e.g. accepts a value that has not special meaning, it is simply a value.
Example:
Expected output:
Actual output:
What is interesting, there seems to already be a implementation of this in CircuitPython in some way, as e.g. a built-in
abs()
works that way:The text was updated successfully, but these errors were encountered: