-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-36045: builtins.help() now prefixes async
for async functions
#12010
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
Conversation
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. You can check yourself to see if the CLA has been received. Thanks again for your contribution, we look forward to reviewing it! |
Signed CLA |
Please add news entry |
I'm still not 100% confident I made the right call here in prefixing async generator functions with "async" in the output of help. pros:
cons:
|
We have no prefix for regular generator functions. |
I'm sorry - I don't think I understand what you are saying. Which same rule is applied?
Why should If upon reading the above, you still feel strongly that async generator functions should not be prefixed with "async", I'll be happy to make that change. |
Well, I'm ok with the change. |
This is a cool change, thanks! |
…ythonGH-12010) Previously, it was hard to tell whether a function should be awaited. It was also incorrect (per PEP 484) to put this in the type hint for coroutine functions. Added this info to the output of builtins.help and pydoc. https://bugs.python.org/issue36045
Previously, it was hard to tell whether a function should be awaited. It was also incorrect (per PEP 484) to put this in the type hint for coroutine functions. Added this info to the output of builtins.help and pydoc.
https://bugs.python.org/issue36045