[Python-Dev] a feature i'd like to see in python #2: indexing of match objects (original) (raw)
Fredrik Lundh fredrik at pythonware.com
Sun Dec 3 22:07:07 CET 2006
- Previous message: [Python-Dev] a feature i'd like to see in python #2: indexing of match objects
- Next message: [Python-Dev] a feature i'd like to see in python #2: indexing of match objects
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Martin v. Löwis wrote:
I know what the Zen says about special cases, but in this case the rules were apparently broken with impunity. Well, the proposal was to interpret m[i] as m.group(i), for all values of i. I can't see anything confusing with that.
it can quickly become rather confusing if you also interpret m[:] as m.groups(), not to mention if you add len() and arbitrary slicing to the mix. what about m[] and m[i,j,k], btw?
- Previous message: [Python-Dev] a feature i'd like to see in python #2: indexing of match objects
- Next message: [Python-Dev] a feature i'd like to see in python #2: indexing of match objects
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]