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

Capture context when creating a generator function, not when it is first .send to. #474

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tomprince
Copy link
Contributor

This adjust eliot_friendly_generator_function to handle the use case of #472 but doesn't do the work of exposing it to users.

When eliot switched to context vars in itamarst#397, this exception became unused.
Since it was never public, there is no reason to keep it around.
@itamarst
Copy link
Owner

@exarkun could you take a look? This makes sense to me, but you understand this code better. Or did at one point 😁

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.

2 participants