getfirst and re

MRAB python at mrabarnett.plus.com
Fri Jan 8 16:39:55 CET 2010


Victor Subervi wrote:
[snip]
> 
> Code snippet:
> 
> def cgiFieldStorageToDict(fieldStorage):
>   params = {}
>   for key in fieldStorage.keys():
>     params[key] = cgi.FieldStorage[key].value
                     ^^^^^^^^^^^^^^^^^^^^^
This is your problem.

>   return params
> 
[snip]




More information about the Python-list mailing list