[issue6156] Error compiling valid regex

2017-11-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue was fixed in issue9179. The issue with 65535 repeats was fixed in issue13169. -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue6156] Error compiling valid regex

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Closing in favor of #2636, which allows this regex to be compiled. -- resolution: -> out of date status: open -> closed superseder: -> Regexp 2.7 (modifications to current re 2.2.2) ___ Python tracker

[issue6156] Error compiling valid regex

2009-06-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti versions: +Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue6156] Error compiling valid regex

2009-06-01 Thread Mykola Kharechko
Mykola Kharechko added the comment: > are you sure there are no valid errors that can be caught there? Sorry, No. See http://svn.python.org/view/python/trunk/Lib/sre_compile.py?r1=17949&r2=17948&pathrev=17949 and http://osdir.com/ml/python.bugs/2000-10/msg00010.html links. -- _

[issue6156] Error compiling valid regex

2009-06-01 Thread Georg Brandl
Georg Brandl added the comment: Just taking out the "raise" seems questionable to me; are you sure there are no valid errors that can be caught there? -- nosy: +georg.brandl ___ Python tracker _

[issue6156] Error compiling valid regex

2009-06-01 Thread Mykola Kharechko
Mykola Kharechko added the comment: patch that fix this -- Added file: http://bugs.python.org/file14142/sre_compile.py.patch ___ Python tracker ___ __

[issue6156] Error compiling valid regex

2009-06-01 Thread Mykola Kharechko
Mykola Kharechko added the comment: tests for this issue. -- keywords: +patch nosy: +crchemist Added file: http://bugs.python.org/file14141/test_re.py.patch ___ Python tracker __

[issue6156] Error compiling valid regex

2009-05-31 Thread Matthew Barnett
Matthew Barnett added the comment: I agree that it's a bug. A workaround is r'([xy])(?:\s{0,65534}\1)+'. A repeat of 65535 is treated as unlimited (but no warning is given). -- nosy: +mrabarnett ___ Python tracker

[issue6156] Error compiling valid regex

2009-05-31 Thread Daniel Eloff
New submission from Daniel Eloff : This works: r'([xy])(?:\1)+' This won't compile, "error: nothing to repeat" r'([xy])(?:\s*\1)+' I can execute this under other regex engines, and it seems to me that it really should work. -- components: Library (Lib) messages: 88600 nosy: Eloff sev