| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
There is yet one error message left (for arguments for positional-only parameters passed by keyword), but it is more significant change and I want to discuss it separately. |
Sorry, something went wrong.
…in error messages for invalid function calls
| Py_ssize_t start, end; | ||
| int positional = (defcount != -1); | ||
| const char *kind = positional ? "positional" : "keyword-only"; | ||
| const char *kind = positional ? "positional" : "keyword"; |
There was a problem hiding this comment.
Why not keeping keyword-only here, it's correct, no?
>>> def f(*, x): pass
...
>>> f()
Traceback (most recent call last):
File "<python-input-1>", line 1, in <module>
f()
~^^
TypeError: f() missing 1 required keyword-only argument: 'x'
Sorry, something went wrong.
There was a problem hiding this comment.
"Keyword-only" is a qualifier of a parameter. Arguments can be "positional" or "keyword".
Sorry, something went wrong.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.