Fredrik Lundh wrote: > Talin wrote: > >> The original proposal was to make m[n] a synonym for m.group(n). >> "group()" is clearly map-like in its behavior. > > so have you checked what exception m.group(n) raises when you try to > access a group that doesn't exist ?
The KeyError vs IndexError distinction is unreliable enough that I'll typically just catch LookupError if I don't know exactly what type I'm dealing with. Cheers, Nick. -- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://www.boredomandlaziness.org _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com