Way to return a dictionary from re.findall?

Fredrik Lundh fredrik at pythonware.com
Mon Feb 19 03:24:03 EST 2001


"Veronica Esquire" wrote:
> Is there a way to get back a dictionary of findall results that is
> based on the regex group names in python's re module?

no.  use a loop.

Cheers /F





More information about the Python-list mailing list