Re: threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Sangeeth Saravanaraj
On 04-Jul-2014, at 1:43 am, Ned Deily wrote: > In article <17f05a1b-44c8-4f25-afe9-5dbcffb99...@gmail.com>, >> I have the following code which when executed waits to be interrupted by >> SIGINT, SIGTERM or SIGQUIT. When an object is initialized, it creates a >> threading.Condition() and acquir

Re: threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Sangeeth Saravanaraj
On 03-Jul-2014, at 3:49 pm, Roy Smith wrote: > In article , > Sangeeth Saravanaraj wrote: > >> Hi All, >> >> I have the following code which when executed waits to be interrupted by >> SIGINT, SIGTERM or SIGQUIT. > > We need more information. Wha

threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Sangeeth Saravanaraj
Hi All, I have the following code which when executed waits to be interrupted by SIGINT, SIGTERM or SIGQUIT. When an object is initialized, it creates a threading.Condition() and acquires() it! The program then registers the signal handlers where notify() and release() is called when the above

Class decorator to capture the creation and deletion of objects

2014-02-24 Thread Sangeeth Saravanaraj
This question was initially asked in tu...@python.org; Now I am widening the audience to gain attention. I want to create a decorator which should do the following things: => When an object of the decorated class is created, the objects name (say the value of the incoming "id" argument) should be