Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > OverflowError: regular expression code size limit exceeded

Thread Tools

OverflowError: regular expression code size limit exceeded
Posts: n/a
Dear all,

I'm trying to get a large, machine-generated regular expression (many
thousands of characters) to work in Python on a Mac (running Leopard),
and I keep banging my head against this brick wall:

>>> update_implicit_link_regexp_temp()

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/greg/elisp/freex/", line 715, in
impLinkRegexp = re.compile(aliasRegexpStr,re.IGNORECASE|
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/", line 180, in compile
return _compile(pattern, flags)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/", line 231, in _compile
p = sre_compile.compile(pattern, flags)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/", line 530, in compile
groupindex, indexgroup
OverflowError: regular expression code size limit exceeded

I have successfully run this regular expression many times under
linux. I tried it first with the default python iinstallation on
Leopard, 2.5.1, but I've also tried it with tthe latest .dmg i could
find on the site:

Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin

I'm really lost about how to proceed. Any ideas?

Thank you,
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco IOS 2908 Exceeded Size Limit rdbrock Cisco 3 12-29-2008 07:42 AM
File Size Limit Exceeded - How to handle work around this? eastcoastguyz C Programming 9 12-14-2006 03:19 AM
Altering error for HTMLInputFile when limit exceeded Eric Sabine ASP .Net 0 08-25-2003 03:11 PM
Dynamically changing the regular expression of Regular Expression validator VSK ASP .Net 2 08-24-2003 02:47 PM
file size limit exceeded Peter Ballard C Programming 9 08-02-2003 08:06 PM