[issue12789] re.Scanner doesn't support more than 2 groups on regex

2011-08-20 Thread Ângelo Otávio Nuffer Nunes
Ângelo Otávio Nuffer Nunes added the comment: Ah, ok, thanks... Then I think my idea is impossible. I will use the Scanner in normal way. :) -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue12789] re.Scanner don't support more then 2 groups on regex

2011-08-19 Thread Ângelo Otávio Nuffer Nunes
New submission from Ângelo Otávio Nuffer Nunes : When I use the scanner object in re module, I can create groups on regex and associate this to a method... In [17]: re.Scanner([(r"(\w)(\w)\w", foo)]) Out[17]: But I tryed 3 groups and it raises "invalid SRE code", but