#2468: Ticket description causing "maximum recursion limit exceeded" in File
"/usr/lib/python2.3/sre.py", line 143
--------------------------------------+-------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  cboos   
     Type:  defect                    |       Status:  assigned
 Priority:  high                      |    Milestone:  0.9.3   
Component:  timeline                  |      Version:  0.9.2   
 Severity:  normal                    |   Resolution:          
 Keywords:                            |  
--------------------------------------+-------------------------------------
Comment (by cboos):

 Back to the original topic: the problem is with
 the following RE:
 {{{
 #!python
     _non_nested_block_re = re.compile(r"(?:^|\n)\{\{\{(?:\n(#![\w+-/]+))?"
 r"(?:\n([^{}]|\{(?!\{\{)|\}(?!\}\}))+)+"
                                       r"\}\}\}")
 }}}

 which simply crashes on some inputs (e.g. the string that can be found
 in the attached log).
 I guess it's because of the negative lookahead expressions.

 Damn, it was already not easy to find a way to parse non nested
 `{{{...}}}` blocks, now I have to find another way...

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2468>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to