[Python-Dev] Where to put the interrupt module?

Brett C. drifty@alum.berkeley.edu
Fri, 13 Jun 2003 15:49:54 -0700


Guido van Rossum wrote:
<SNIP>
> I've seen a proposal (I think it was in a paper presented at the
> second Little Languages conference at MIT, earlier this year) of a
> syntactic extension that could be used:
> 
>   initially:
>       lock.acquire()
>   try:
>       ...critical section code...
>   finally:
>       lock.release()
> 
> (this would block asynchronous signals during the initially: block)
> but that's a pretty heavy-handed solution.
> 

Yes, this was presented in a paper at the conference.

python-dev's-unofficial-librarian-and-historian-ly y'rs, Brett