Skip to content
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

api: don't execute callbacks within a greenlet if we're already in one #1284

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

Fizzadar
Copy link
Member

@Fizzadar Fizzadar commented Feb 4, 2025

Prevents infinite recursion when the loacl context is lost when switching between greenlets.

Closes: #1283

Prevents infinite recursion when the loacl context is lost when switching
between greenlets.
@Fizzadar Fizzadar force-pushed the fix-double-nested-callback-infinite-recursion branch from 32c9312 to 45b10b4 Compare February 5, 2025 20:55
Latest mypy (1.15) doesn't like the paramspec varargs being before the
explicit keyword arguments (it's correct).
@Fizzadar Fizzadar force-pushed the fix-double-nested-callback-infinite-recursion branch from 45b10b4 to efb7cb3 Compare February 5, 2025 20:56
@Fizzadar Fizzadar merged commit efb7cb3 into 3.x Feb 5, 2025
22 checks passed
@Fizzadar Fizzadar deleted the fix-double-nested-callback-infinite-recursion branch February 5, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nested callbacks do not work
1 participant