[Python-ideas] Letting context managers react to yields inside their scope

Yury Selivanov yselivanov.ml at gmail.com
Thu Apr 30 06:39:20 CEST 2015


On 2015-04-30 12:04 AM, Eric Snow wrote:
> This is all rough and the result of divided attention over the last
> few hours, but the idea of leaving the switching up to the "context
> switcher" is the key thing.  Also, I smell some overlapping concepts
> with existing types and patterns that could probably distill the idea
> of a generic Context type into something cleaner.

Agree.

Long story short we have to prototype this ;)

Yury


More information about the Python-ideas mailing list