Two candies

Aahz aahz at pythoncraft.com
Thu Jan 3 05:29:57 CET 2008


In article <78662711-83fe-47ae-9dfa-d55d710bcdac at i3g2000hsf.googlegroups.com>,
 <bearophileHUGS at lycos.com> wrote:
>
>2) When I use MatchObjects I have to look at the docs to remember the
>difference between group() and groups() etc. So I suggest to add a
>__getitem__ method to MatchObject, so this:
>
>mo[3]
>
>Equals to:
>
>mo.group(3)

Patches are wonderful, but if not, please post this RFE to the bug
tracker.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Weinberg's Second Law: If builders built buildings the way programmers wrote 
programs, then the first woodpecker that came along would destroy civilization.



More information about the Python-list mailing list