getfirst and re

MRAB python at mrabarnett.plus.com
Fri Jan 8 10:39:55 EST 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