New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
maximum recursion limit exceeded (2.1) #34410
Comments
% /usr/bin/env python2.1
% uname -a
HP-UX wshelley B.11.00 A 9000/785 2014123772 two-user
license
% rebug.py
Traceback (most recent call last):
File "rebug.py", line 205, in ?
re.search("== Data Table ==\n(.*?)\n(.*?)\s*$",
output, re.S)
File "/usr/local/lib/python2.1/sre.py", line 57, in
search
return _compile(pattern, flags).search(string)
RuntimeError: maximum recursion limit exceeded rebug.py script works correctly using python1.5.2 I submitted this bug as a followup to [ bpo-215696 ] sre ##### The following is the rebug.py file
#!/usr/bin/env python2.1
import re
output = """Using == Data Table == re.search("== Data Table ==\n(.*?)\n(.*?)\s*$", output, |
Logged In: YES Assigned to /F. Works for me on Win98 under 2.1. Binding print m.span(), len(output), m.span(1), m.span(2) yields (8, 12112) 12112 (25, 43) (44, 12111) Anonymous, this is a poor use for regexps: the code would |
Logged In: NO I have the same problem, running Python 2.1.3. It works well under Windows XP, but fails under Linux. Both (<table.*?>[\s,\S]*?</table>) I use re.split in order to group code outside tables and code |
Logged In: YES Is this bug still a problem? No problem under OS X using 2.3b1. |
Logged In: YES As Gary Herron correctly pointed me out, this was fixed in This won't be fixed in 2.2.3, but hopefully will be |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: