[Python-ideas] PEP draft: context variables

Ethan Furman ethan at stoneleaf.us
Fri Oct 13 21:07:26 EDT 2017

On 10/13/2017 03:30 PM, Yury Selivanov wrote:

> At this time, we have so many conflicted examples and tangled
> discussions on these topics, that I myself just lost what everybody is
> implying by "this semantics isn't obvious to *me*".  Which semantics?
> It's hard to tell.

For me, it's not apparent why __aenter__ and __aexit__ cannot be special-cased.  I would be grateful for a small 
code-snippet illustrating the danger.


More information about the Python-ideas mailing list