Re: [Tutor] TimeOut in

2009-11-11 Thread OkaMthembo
Hi Somnath, I think the exception simply means that the thread object or class does not have a cancel function. maybe read docs on Python threads to see what functions can be called on those? On Sun, Nov 8, 2009 at 9:09 PM, somnath chakrabarti < chakrabarti.somn...@gmail.com> wrote: > Hi Alan, >

[Tutor] TimeOut in between threads

2009-11-08 Thread somnath chakrabarti
Hi Python Tutor members, I am learning the concept of threads in Python and trying to write a Python code that will start a thread (say t1) from main or any other thread and then t1 will call a certain function f1(). If the execution of function f1() takes more than a specified time (say 1000 secs

Re: [Tutor] TimeOut in

2009-11-08 Thread Alan Gauld
"somnath chakrabarti" wrote Below is the code that I have written to do the timeout implementation. But I am getting error as follows. Can anybody please help me where I am going wrong? I have no idea how this framework is upposed to work but my guess is that the problem lies here: de

[Tutor] TimeOut in

2009-11-08 Thread somnath chakrabarti
Hi Python Tutor members, I have a requirement where I am trying to give a solution for Magic Square puzzle for sizes ranging from 3 to 5 and using different Solvers. I have the below MS class derived from Problem class which is defined in constraint.py. The Problem class has a method called getSol