-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
PEP 3102 and PEP 570 should say **Keyword-Only Parameters** instead of **Keyword-Only Arguments** #133438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
PEPs are historical documents that won't get updates like that and thus they may contain typos or errors. We don't have a policy of publishing erratas though (@AA-Turner maybe it'd be good to have an errata policy?) |
Is there anywhere that the error appears in the current documentation? As Ben says, as a A |
All occurrences in Cpython:
There are some that should be fixed. |
I think we should generally continue the policy of leaving PEPs as historical docs. In particular, I don't think this issue should be an exception. So either 1) this issue should be closed and a new one opened, with Stan's list copied over; or 2) the title and initial comment should be revised (but then following comments, including this, would not fit). I suggest 1). |
For the revised or new issue: in some cases, '-only' should be removed, resulting in 'keyword argument'; in others, s/argument/parameter, as proposed. |
IMO either is fine as for 2), the comments can be marked as "resolved" (or similar) hiding them. |
…in the documentation
…in the documentation
There are many other cases of misusing "argument" and "parameter". #135160 fixes the use of the terms "argument" and "parameter" in the documentation. A following PR will fix also error messages and output. |
…in error messages for invalid function calls
…in dis.show_code()
FWIW, I'd keep the phrase keyword-only argument in (most) places where we're really talking about arguments, like “This function accepts a keyword-only foo argument.” |
Uh oh!
There was an error while loading. Please reload this page.
PEP 3102 and PEP 570 say Keyword-Only Arguments but they should say Keyword-Only Parameters because a keyword-only parameter is the parameter which only accepts a keyword argument.
Actually, PEP 570 correctly says Positional-Only Parameters because a positional-only parameter is the parameter which only accepts a positional argument.
Glossary explains a keyword argument and positional argument.
Linked PRs
The text was updated successfully, but these errors were encountered: