itamarst / eliot

Eliot: the logging system that tells you *why* it happened
https://eliot.readthedocs.io
Apache License 2.0
1.09k stars 65 forks source link

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

Open tomprince opened 3 years ago

tomprince commented 3 years ago

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

itamarst commented 2 years ago

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