[issue10532] A bug related to matching the empty string

2010-11-26 Thread Ned Deily
Ned Deily added the comment: Closing this issue since it appears to not be a bug. -- nosy: +ned.deily resolution: -> invalid status: open -> closed ___ Python tracker ___ _

[issue10532] A bug related to matching the empty string

2010-11-25 Thread Matthew Barnett
Matthew Barnett added the comment: The spans say this: >>> for m in re.finditer('((.d.)*)*', 'adb'): print(m.span()) (0, 3) (3, 3) There's an non-empty match followed by an empty match. IHMO, not a bug. -- nosy: +mrabarnett ___ Python tr

[issue10532] A bug related to matching the empty string

2010-11-25 Thread Yingjie
Changes by Yingjie : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue10532] A bug related to matching the empty string

2010-11-25 Thread Yingjie
New submission from Yingjie : Here are some puzzling results I have got (I am using Python 3, I suppose similar results for python 2). When I do the following, I got an exception: >>> re.findall('(d*)*', 'adb') >>> re.findall('((d)*)*', 'adb') When I do this, I am fine but the result is wrong: