Re: 88k regex = RuntimeError

2006-02-14 Thread Peter Otten
Tim N. van der Leeuw wrote: > This is basically the same idea as what I tried to describe in my > previous post but without any samples. > I wonder if it's more efficient to create a new list using a > list-comprehension, and checking each entry against the 'wanted' set, > or to create a new set w

Re: 88k regex = RuntimeError

2006-02-14 Thread Tim N. van der Leeuw
This is basically the same idea as what I tried to describe in my previous post but without any samples. I wonder if it's more efficient to create a new list using a list-comprehension, and checking each entry against the 'wanted' set, or to create a new set which is the intersection of set 'wanted

Re: 88k regex = RuntimeError

2006-02-14 Thread Peter Otten
jodawi wrote: > I need to find a bunch of C function declarations by searching > thousands of source or html files for thousands of known function > names. My initial simple approach was to do this: > > rxAllSupported = re.compile(r"\b(" + "|".join(gAllSupported) + r")\b") > # giving a regex of

Re: 88k regex = RuntimeError

2006-02-14 Thread Kent Johnson
jodawi wrote: > I need to find a bunch of C function declarations by searching > thousands of source or html files for thousands of known function > names. My initial simple approach was to do this: > > rxAllSupported = re.compile(r"\b(" + "|".join(gAllSupported) + r")\b") > # giving a regex of

Re: 88k regex = RuntimeError

2006-02-14 Thread Tim N. van der Leeuw
Why don't you create a regex that finds for you all C function declarations (and which returns you the function-names); apply re.findall() to all files with that regex; and then check those funtion-names against the set of allSupported? You might even be able to find a regex for C funtion declarat

Re: 88k regex = RuntimeError

2006-02-14 Thread Diez B. Roggisch
> I assume it's hitting some limit, but don't know where the limit is to > remove it. I tried stepping into it repeatedly with Komodo, but didn't > see the problem. That's because it is buried in the C-library that is the actual implementation. There has been a discussion about this a few weeks ag

88k regex = RuntimeError

2006-02-13 Thread jodawi
I need to find a bunch of C function declarations by searching thousands of source or html files for thousands of known function names. My initial simple approach was to do this: rxAllSupported = re.compile(r"\b(" + "|".join(gAllSupported) + r")\b") # giving a regex of \b(AAFoo|ABFoo| (uh... 8