[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 15:34:11 CET 2006


Martin v. Löwis wrote:

Several issues need to be taken into account:

the most important issue is that if you want an object to behave as a sequence of something, you need to decide what that something is before you start tinkering with the syntax.

under Ben's simple proposal, m[:][1] and m[1] would be two different things. I'm not sure that's a good idea, really.



More information about the Python-Dev mailing list