<div class="gmail_quote">On Fri, Jan 8, 2010 at 2:52 PM, Jean-Michel Pichavant <span dir="ltr"><<a href="mailto:jeanmichel@sequans.com">jeanmichel@sequans.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Victor Subervi wrote:<div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri, Jan 8, 2010 at 1:26 PM, Steve Holden <<a href="mailto:steve@holdenweb.com" target="_blank">steve@holdenweb.com</a> <mailto:<a href="mailto:steve@holdenweb.com" target="_blank">steve@holdenweb.com</a>>> wrote:<br>
<br>
MRAB wrote:<br>
> Victor Subervi wrote:<br>
> [snip]<br>
>><br>
>> Code snippet:<br>
>><br>
>> def cgiFieldStorageToDict(fieldStorage):<br>
^^^^^^^^^^^^<br>
Further hint ...<br>
<br>
>> params = {}<br>
>> for key in fieldStorage.keys():<br>
>> params[key] = cgi.FieldStorage[key].value<br>
> ^^^^^^^^^^^^^^^^^^^^^<br>
> This is your problem.<br>
<br>
<br>
The problem is that I don't understand this code that I exactly copied from a Web page tutorial. Can you folks point me to tutorials where I can learn to comprehend this code? Specifically, the line in question. How is it that one can code "params[key]" (what does that mean?) and the other side, what does that mean<br>
</blockquote></div></div>
I think you are gathering more fans Victor :)<br></blockquote><div><br>Fans? You aught to hear me sing. I didn't think I'd gain fans here LOL! <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<a href="http://docs.python.org/tutorial/datastructures.html#dictionaries" target="_blank">http://docs.python.org/tutorial/datastructures.html#dictionaries</a><br></blockquote><div><br>Thanks,<br>beno<br>
</div></div><br>