Dec. 3, 2006
5:15 p.m.
On Sun, Dec 03, 2006, "Martin v. L?wis" wrote:
Ben Wing schrieb:
this one is fairly simple. if `m' is a match object, i'd like to be able to write m[1] instead of m.group(1). (similarly, m[:] should return the same as list(m.groups()).) this would remove some of the verbosity of regexp code, with probably a net gain in readability; certainly no loss.
Please post a patch to sf.net/projects/python (or its successor).
Given the list of issues and subsequent discussion so far, I think a PEP will be required. This needs more documentation than the typical patch. -- Aahz (aahz@pythoncraft.com) <*> http://www.pythoncraft.com/ Member of the Groucho Marx Fan Club