-
-
Notifications
You must be signed in to change notification settings - Fork 30k
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
anext builtin docstring has no signature text or info about default argument #88084
Comments
The new builtin This is clearly an oversight. See comment here: #23847 (comment) Also, the "default" argument is not described in the docstring. Related issue: https://bugs.python.org/issue31861 (PR forthcoming) |
inspect.signature(anext) raises "ValueError: <built-in function anext> builtin has invalid signature". Guido, is this a bug? Even if not, docstring should have it. |
Thanks for taking a look Terry. I saw that error as well. It is separate from this issue, and I don't think it is a bug. No other builtin functions or methods that raise this error with this text have such a notice in their docstring, so it doesn't seem appropriate to me to add it to the docstring at this point in time. Search for "" to find other functions and methods that have the same issue.
I actually did poke around a bit at having the the Argument Clinic and |
Closing this as completed, since #25551 makes |
anext
builtin #25551Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: