Re: Timeout for regular expression

2005-11-23 Thread Terry Hancock
On Tue, 22 Nov 2005 18:49:15 +0100 "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > not directly. the only reliable way is to run it in a > separate process, and use the resource module to set > necessary limits. Wow. Thank you Mr. Lundh, I never noticed that module. I think I have an application for

Re: Timeout for regular expression

2005-11-22 Thread Fredrik Lundh
<[EMAIL PROTECTED]> wrote > Is there a way to set a timeout interval when executing with a > re.search ? Sometimes (reason being maybe a "bad" pattern), > the search takes forever and beyond... not directly. the only reliable way is to run it in a separate process, and use the resource module to

Timeout for regular expression

2005-11-22 Thread citronelu
Hi All, Is there a way to set a timeout interval when executing with a re.search ? Sometimes (reason being maybe a "bad" pattern), the search takes forever and beyond... -- http://mail.python.org/mailman/listinfo/python-list