-
Notifications
You must be signed in to change notification settings - Fork 1k
inspect.isgenerator is broken #997
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
Fix:
Note the additional parentheses. |
dpgeorge
added a commit
to dpgeorge/micropython-lib
that referenced
this issue
Apr 11, 2025
Also optimise both `isgenerator()` and `isgeneratorfunction()` so they use the same lambda, and don't have to create it each time they are called. Fixes issue micropython#997. Signed-off-by: Damien George <[email protected]>
Yes, you're quite right, it's missing those parenthesis. See #998 for a fix. |
dpgeorge
added a commit
to dpgeorge/micropython-lib
that referenced
this issue
Apr 14, 2025
Also optimise both `isgenerator()` and `isgeneratorfunction()` so they use the same lambda, and don't have to create it each time they are called. Fixes issue micropython#997. Signed-off-by: Damien George <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This doesn't quite match what I'd expect.
The text was updated successfully, but these errors were encountered: