[IronPython] re.findall bug

Dino Viehland dinov at exchange.microsoft.com
Fri Sep 22 17:22:30 CEST 2006

Thanks for the bug report Seo.  It looks like we're just not doing the same transform we do for the non-compiled case for the compiled case.  I've opened CodePlex bug #3560 to track the issue (http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkItemId=3560).

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Sanghyeon Seo
Sent: Friday, September 22, 2006 5:08 AM
To: Discussion of IronPython
Subject: [IronPython] re.findall bug

This only happens if you compile the pattern.

To Mono users who don't get the same result as below: it's normal.
Mono bug #79472. http://bugzilla.ximian.com/show_bug.cgi?id=79472

IronPython 1.0.60816 on .NET 2.0.50727.42 Copyright (c) Microsoft Corporation. All rights reserved.
>>> import re
>>> re.findall('(a)(b)', 'abab')
[('a', 'b'), ('a', 'b')]
>>> re.compile('(a)(b)').findall('abab')
['ab', 'ab']

Seo Sanghyeon
users mailing list
users at lists.ironpython.com

More information about the Ironpython-users mailing list