Issue 17568: re: Infinite loop with repeated empty alternative (original) (raw)

Issue17568

Created on 2013-03-28 23:50 by ericp, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg185474 - (view) Author: Eric Promislow (ericp) Date: 2013-03-28 23:50
>>> import re >>> p = re.compile(r'^(?:\\"|. )*?"', re.S re.M) >>> s = 'sub foo {\n\tprint "\n\t\tbar\n\t\t";\n}\n' >>> m = p.findall(s) Python doesn't return. Dropping the last "
msg185958 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-04-03 21:34
I can reproduce on 3.2.3, but otherwise this work fine in the upcoming 3.2.4 and on 3.3+.
History
Date User Action Args
2022-04-11 14:57:43 admin set github: 61768
2013-04-03 21:34:14 ezio.melotti set status: open -> closedresolution: out of datemessages: + stage: resolved
2013-03-29 18:22:38 ezio.melotti set nosy: + ezio.melotti, mrabarnetttype: enhancement -> behaviorcomponents: + Regular Expressions
2013-03-28 23:50:02 ericp create