A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-December/070159.html below:

[Python-Dev] a feature i'd like to see in python #2: indexing of match objects

[Python-Dev] a feature i'd like to see in python #2: indexing of match objects [Python-Dev] a feature i'd like to see in python #2: indexing of match objectsFredrik Lundh fredrik at pythonware.com
Sun Dec 3 22:07:07 CET 2006
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?

</F>

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4