[Python-ideas] Protecting finally clauses of interruptions

Yury Selivanov yselivanov.ml at gmail.com
Tue Apr 3 01:13:47 CEST 2012


On 2012-04-02, at 7:10 PM, Gregory P. Smith wrote:
> If the __enter__ method is interrupted it won't have returned a context and thus __exit__ will never be called.

To address that Paul proposed to make __enter__ non-interruptable as well.

-
Yury


More information about the Python-ideas mailing list