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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to