En Mon, 01 Oct 2007 04:34:38 -0300, Joel <[EMAIL PROTECTED]>
escribi�:
> On Sep 27, 10:40 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote:
>> You can use ctypes and the Python API to raise a Python exception in
>> the thread.
> Could you point me to an example of how to do that?
Found this:
On Sep 27, 10:40 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote:
> On 9/27/07, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
>
>
>
> > Joel <[EMAIL PROTECTED]> writes:
>
> > >> Note that, unlike the original alarm code, it doesn't really interrupt
> > >> the timed-out method, it just returns the control b
"Chris Mellon" <[EMAIL PROTECTED]> writes:
> You can use ctypes and the Python API to raise a Python exception in
> the thread.
How, by changing the thread's exception state?
--
http://mail.python.org/mailman/listinfo/python-list
On 9/27/07, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
> Joel <[EMAIL PROTECTED]> writes:
>
> >> Note that, unlike the original alarm code, it doesn't really interrupt
> >> the timed-out method, it just returns the control back to the caller,
> >> using an exception to mark that a timeout occurred.
Joel <[EMAIL PROTECTED]> writes:
>> Note that, unlike the original alarm code, it doesn't really interrupt
>> the timed-out method, it just returns the control back to the caller,
>> using an exception to mark that a timeout occurred. The "timed out"
>> code is still merrily running in the backgr
Steve Holden wrote:
> Joel wrote:
>> On Sep 27, 4:36 pm, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
>>> Joel <[EMAIL PROTECTED]> writes:
I found the solution :
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440569
describes a solution based on threads. I tested it and it works
Joel wrote:
> On Sep 27, 4:36 pm, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
>> Joel <[EMAIL PROTECTED]> writes:
>>> I found the solution :
>>> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440569
>>> describes a solution based on threads. I tested it and it works
>>> perfectly.
>> Note tha
On Sep 27, 4:36 pm, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
> Joel <[EMAIL PROTECTED]> writes:
> > I found the solution :
> >http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440569
> > describes a solution based on threads. I tested it and it works
> > perfectly.
>
> Note that, unlike the o
Joel <[EMAIL PROTECTED]> writes:
> I found the solution :
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440569
> describes a solution based on threads. I tested it and it works
> perfectly.
Note that, unlike the original alarm code, it doesn't really interrupt
the timed-out method, it
On Sep 26, 12:21 pm, Joel <[EMAIL PROTECTED]> wrote:
> I've been using this nice timing out decorator
> :http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/307871. The
> problem is that since it relies on sigalarm, it doesn't work under
> windows. Would anyone know how to do a cross-platform
On Sep 26, 5:21 am, Joel <[EMAIL PROTECTED]> wrote:
> I've been using this nice timing out decorator
> :http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/307871. The
> problem is that since it relies on sigalarm, it doesn't work under
> windows. Would anyone know how to do a cross-platform v
Joel wrote:
> I've been using this nice timing out decorator :
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/307871 . The
> problem is that since it relies on sigalarm, it doesn't work under
> windows. Would anyone know how to do a cross-platform version?
I don't think you're going to
I've been using this nice timing out decorator :
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/307871 . The
problem is that since it relies on sigalarm, it doesn't work under
windows. Would anyone know how to do a cross-platform version?
Thanks a lot!
joel
--
http://mail.python.org/ma
13 matches
Mail list logo