-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Clarify specification of object.__await__ #85979
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
The current specification of object.__await__ is just:
This is pretty vague leaves the doubt of *what* objects is the iterator expected to yield (and how the value of the yielded object affects the management of the awaitable object). Although the vagueness is probably on purpose (since this isn't tied to any particular event loop implementation, so it can be an arbitrary iterable), I think it's worthwhile adding a note clarifying this aspect. I originally posed this question on StackOverflow: https://stackoverflow.com/q/63964011/6117426 |
The proposed addition (see attached PR) is the following note: .. note::
|
Co-authored-by: Kumar Aditya <[email protected]>
…-22320) (cherry picked from commit f59c7f8) Co-authored-by: Paolo Lammens <[email protected]> Co-authored-by: Kumar Aditya <[email protected]>
…-22320) (cherry picked from commit f59c7f8) Co-authored-by: Paolo Lammens <[email protected]> Co-authored-by: Kumar Aditya <[email protected]>
(cherry picked from commit f59c7f8) Co-authored-by: Paolo Lammens <[email protected]> Co-authored-by: Kumar Aditya <[email protected]>
(cherry picked from commit f59c7f8) Co-authored-by: Paolo Lammens <[email protected]> Co-authored-by: Kumar Aditya <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Note: 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:
Linked PRs
object.__await__
(GH-22320) #100635object.__await__
(GH-22320) #100636The text was updated successfully, but these errors were encountered: