Way to return a dictionary from re.findall?

Fredrik Lundh fredrik at pythonware.com
Mon Feb 19 09:24:03 CET 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