[Python-ideas] Generator-based context managers can't skip __exit__

Ethan Furman ethan at stoneleaf.us
Sun Nov 6 21:25:56 EST 2016


On 11/06/2016 12:44 AM, Ram Rachum wrote:

> I see that Python does allow you to not call `__exit__` if you don't want
>  to [...]

Um, how?  I was unaware of this (mis-)feature.

--
~Ethan~


More information about the Python-ideas mailing list