[Python-ideas] Async API

Yury Selivanov yselivanov.ml at gmail.com
Thu Oct 25 04:28:15 CEST 2012


On 2012-10-24, at 9:34 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
[...]
> (Note that in the face of preemption, I don't think it's possible
> to solve this problem completely without language support, because
> there will always be a small window of opportunity between
> entering the finally clause and getting into the with-statement
> or whatever that you're using to block asynchronous signals.)

Agree.

In my experience, though, broken finally blocks due to interruption
by a signal is a very rare thing (again, that maybe different for
someone else.)

-
Yury



More information about the Python-ideas mailing list