-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
extmod/uasyncio: Fix syntax of generator functions #10190
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1c0ca83
to
a05d80c
Compare
Code size report:
|
1 similar comment
Code size report:
|
dpgeorge
reviewed
Dec 13, 2022
Thanks for this, I agree with the change. It's actually close to what I did in #6668, which adds support for async generators. |
a05d80c
to
74c5668
Compare
@dpgeorge Thanks for the review. I updated the PR as requested. |
Code size report:
|
74c5668
to
c8c8399
Compare
Code size report:
|
The compiler is not picky right now, but these are actually all syntax errors: - await is only valid in an async function - async functions that use yield are actually async generators (a construct not supported by the compiler right now)
c8c8399
to
0eba00a
Compare
Code size report:
|
Thanks for updating. Rebased and merged. |
tannewt
pushed a commit
to tannewt/circuitpython
that referenced
this pull request
Mar 31, 2025
Add guards to common_hal_pulseio_pulse(in|out)_deinit to prevent doub…
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Fix the syntax of generator functions in the
uasyncio
package:await
is only valid in anasync
functionasync
functions that useyield
are actually async generators (a construct not supported by the compiler right now)Why?
The compiler is not picky right now, but these are actually all syntax errors.