Re: [Python-Dev] re.findall() should return named tuple

2011-12-09 Thread Terry Reedy
On 12/8/2011 8:31 AM, Philipp A. wrote: hi devs, just an idea that popped up in my mind: re.findall() returns a list of tuples, where every entry of each tuple represents a match group. since match groups can be named, we are able to use named tuples instead of plain tuples here, in the same fas

[Python-Dev] re.findall() should return named tuple

2011-12-09 Thread Philipp A.
hi devs, just an idea that popped up in my mind: re.findall() returns a list of tuples, where every entry of each tuple represents a match group. since match groups can be named, we are able to use named tuples instead of plain tuples here, in the same fashion as namedtuple’s rename works: misssin