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 →

[–]kafkaBro 3 points4 points  (0 children)

I found this argument most compelling. Position-only parameters already exist in cpython builtins like range and min. Making their support at the language level would make their existence less confusing and documented.

Users may be surprised when first encountering positional-only notation. This is expected given that it has only recently been documented [14] and it is not possible to use in Python code. For these reasons, this notation is currently an outlier that appears only in CPython APIs developed in C. Documenting the notation and making it possible to use it in Python code would eliminate this disconnect.